Changeset 202770 in webkit
- Timestamp:
- Jul 1, 2016 7:20:39 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r202769 r202770 1 2016-07-01 Benjamin Poulain <bpoulain@apple.com> 2 3 [JSC] RegExp.compile is not returning the regexp when it succeed 4 https://bugs.webkit.org/show_bug.cgi?id=159381 5 6 Reviewed by Mark Lam. 7 8 * js/regexp-compile-expected.txt: 9 * js/script-tests/regexp-compile.js: 10 1 11 2016-07-01 Zalan Bujtas <zalan@apple.com> 2 12 -
trunk/LayoutTests/js/regexp-compile-expected.txt
r53062 r202770 24 24 PASS re.lastIndex is 0 25 25 PASS re.lastIndex is 1 26 PASS regexpWithUndefinedCompiledToValid = new RegExp(undefined), regexpWithUndefinedCompiledToValid.compile('abc') is regexpWithUndefinedCompiledToValid 27 PASS regexpValidPatternCompiledToValid = new RegExp('zyx'), regexpValidPatternCompiledToValid.compile('abc') is regexpValidPatternCompiledToValid 28 PASS regexpWithValidCompiledToUndefined = new RegExp('abc'), regexpWithValidCompiledToUndefined.compile(undefined) is regexpWithValidCompiledToUndefined 26 29 PASS successfullyParsed is true 27 30 -
trunk/LayoutTests/js/script-tests/regexp-compile.js
r98407 r202770 50 50 re.exec("aaa"); 51 51 shouldBe("re.lastIndex", "1"); 52 53 // Compile returns the regexp itself. 54 shouldBe("regexpWithUndefinedCompiledToValid = new RegExp(undefined), regexpWithUndefinedCompiledToValid.compile('abc')", "regexpWithUndefinedCompiledToValid"); 55 shouldBe("regexpValidPatternCompiledToValid = new RegExp('zyx'), regexpValidPatternCompiledToValid.compile('abc')", "regexpValidPatternCompiledToValid"); 56 shouldBe("regexpWithValidCompiledToUndefined = new RegExp('abc'), regexpWithValidCompiledToUndefined.compile(undefined)", "regexpWithValidCompiledToUndefined"); -
trunk/Source/JavaScriptCore/ChangeLog
r202768 r202770 1 2016-07-01 Benjamin Poulain <bpoulain@apple.com> 2 3 [JSC] RegExp.compile is not returning the regexp when it succeed 4 https://bugs.webkit.org/show_bug.cgi?id=159381 5 6 Reviewed by Mark Lam. 7 8 Spec: 9 -https://tc39.github.io/ecma262/#sec-regexp.prototype.compile 10 -https://tc39.github.io/ecma262/#sec-regexpinitialize 11 12 * runtime/RegExpPrototype.cpp: 13 (JSC::regExpProtoFuncCompile): 14 1 15 2016-07-01 Saam Barati <sbarati@apple.com> 2 16 -
trunk/Source/JavaScriptCore/runtime/RegExpPrototype.cpp
r201787 r202770 167 167 asRegExpObject(thisValue)->setRegExp(exec->vm(), regExp); 168 168 asRegExpObject(thisValue)->setLastIndex(exec, 0); 169 return JSValue::encode( jsUndefined());169 return JSValue::encode(thisValue); 170 170 } 171 171
Note: See TracChangeset
for help on using the changeset viewer.