mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-08 08:17:31 +09:00
parent
6e997648ba
commit
d3ffa46e36
4 changed files with 11 additions and 10 deletions
|
|
@ -235,8 +235,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=933681
|
|||
gPrototypeProperties['RegExp'] =
|
||||
["constructor", "toSource", "toString", "compile", "exec", "test",
|
||||
Symbol.match, Symbol.replace, Symbol.search, Symbol.split,
|
||||
"flags", "global", "ignoreCase", "multiline", "source", "sticky", "unicode",
|
||||
"lastIndex"];
|
||||
"flags", "global", "ignoreCase", "multiline", "source", "sticky", "unicode"];
|
||||
gConstructorProperties['RegExp'] =
|
||||
constructorProps(["input", "lastMatch", "lastParen",
|
||||
"leftContext", "rightContext", "$1", "$2", "$3", "$4",
|
||||
|
|
|
|||
9
js/xpconnect/tests/unit/test_xray_regexp.js
Normal file
9
js/xpconnect/tests/unit/test_xray_regexp.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
const Cu = Components.utils;
|
||||
|
||||
function run_test() {
|
||||
var sandbox = Cu.Sandbox('http://www.example.com');
|
||||
var regexp = Cu.evalInSandbox("/test/i", sandbox);
|
||||
equal(RegExp.prototype.toString.call(regexp), "/test/i");
|
||||
var prototype = Cu.evalInSandbox("RegExp.prototype", sandbox);
|
||||
equal(typeof prototype.lastIndex, "undefined");
|
||||
}
|
||||
|
|
@ -133,5 +133,6 @@ head = head_watchdog.js
|
|||
[test_xrayed_iterator.js]
|
||||
[test_xray_SavedFrame.js]
|
||||
[test_xray_SavedFrame-02.js]
|
||||
[test_xray_regexp.js]
|
||||
[test_resolve_dead_promise.js]
|
||||
[test_asyncLoadSubScriptError.js]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue