| browser.js |
|
0 |
- |
| cross-realm.js |
---
esid: sec-get-regexp.prototype.source
description: A TypeError is thrown when the "this" value is an invalid cross-realm Object
info: |
1. Let R be the this value.
2. If Type(R) is not Object, throw a TypeError exception.
3. If R does not have an [[OriginalFlags]] internal slot, then
a. If SameValue(R, %RegExpPrototype%) is true, return "(?:)".
b. Otherwise, throw a TypeError exception.
features: [cross-realm]
--- |
1136 |
- |
| length.js |
---
esid: sec-get-regexp.prototype.source
description: >
get RegExp.prototype.source.length is 0.
info: |
get RegExp.prototype.source
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description, including optional
parameters. However, rest parameters shown using the form “...name”
are not included in the default argument count.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
--- |
1161 |
- |
| name.js |
---
esid: sec-get-regexp.prototype.source
description: >
get RegExp.prototype.source.name is "get source".
info: |
get RegExp.prototype.source
17 ECMAScript Standard Built-in Objects
Functions that are specified as get or set accessor functions of built-in
properties have "get " or "set " prepended to the property name string.
Unless otherwise specified, the name property of a built-in function object,
if it exists, has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
--- |
925 |
- |
| prop-desc.js |
---
esid: sec-get-regexp.prototype.source
description: >
RegExp.prototype.source is an accessor property whose set accessor
function is undefined
includes: [propertyHelper.js]
--- |
619 |
- |
| shell.js |
|
0 |
- |
| this-val-invalid-obj.js |
---
esid: sec-get-regexp.prototype.source
description: A TypeError is thrown when the "this" value is an invalid Object
info: |
1. Let R be the this value.
2. If Type(R) is not Object, throw a TypeError exception.
3. If R does not have an [[OriginalFlags]] internal slot, then
a. If SameValue(R, %RegExpPrototype%) is true, return "(?:)".
b. Otherwise, throw a TypeError exception.
--- |
972 |
- |
| this-val-non-obj.js |
---
esid: sec-get-regexp.prototype.source
description: A TypeError is thrown when the "this" value is not an Object
info: |
1. Let R be the this value.
2. If Type(R) is not Object, throw a TypeError exception.
features: [Symbol]
--- |
1005 |
- |
| this-val-regexp-prototype.js |
---
esid: sec-get-regexp.prototype.source
description: >
Return "(?:)" when the `this` value is the RegExp.prototype object
info: |
1. Let R be the this value.
2. If Type(R) is not Object, throw a TypeError exception.
3. If R does not have an [[OriginalFlags]] internal slot, then
a. If SameValue(R, %RegExpPrototype%) is true, return "(?:)".
--- |
655 |
- |
| value-empty.js |
---
esid: sec-get-regexp.prototype.source
description: >
Return value can be used to create an equivalent RegExp when the
[[OriginalSource]] internal slot is the empty string
21.2.3.2.4 Runtime Semantics: EscapeRegExpPattern
[...] the internal procedure that would result from evaluating S as a
Pattern[~U] (Pattern[+U] if F contains "u") must behave identically to the
internal procedure given by the constructed object's [[RegExpMatcher]]
internal slot.
info: |
[...]
5. Let src be R.[[OriginalSource]].
6. Let flags be R.[[OriginalFlags]].
7. Return EscapeRegExpPattern(src, flags).
--- |
867 |
- |
| value-line-terminator.js |
---
esid: sec-get-regexp.prototype.source
description: >
Return value can be used to create an equivalent RegExp when the
[[OriginalSource]] internal slot contains a LineTerminator
info: |
[...]
5. Let src be R.[[OriginalSource]].
6. Let flags be R.[[OriginalFlags]].
7. Return EscapeRegExpPattern(src, flags).
21.2.3.2.4 Runtime Semantics: EscapeRegExpPattern
[...] the internal procedure that would result from evaluating S as a
Pattern[~U] (Pattern[+U] if F contains "u") must behave identically to the
internal procedure given by the constructed object's [[RegExpMatcher]]
internal slot.
--- |
1120 |
- |
| value-slash.js |
---
esid: sec-get-regexp.prototype.source
description: Return value can be used to create an equivalent RegExp
info: |
[...]
5. Let src be R.[[OriginalSource]].
6. Let flags be R.[[OriginalFlags]].
7. Return EscapeRegExpPattern(src, flags).
21.2.3.2.4 Runtime Semantics: EscapeRegExpPattern
[...] The code points / or any LineTerminator occurring in the pattern
shall be escaped in S as necessary to ensure that the String value
formed by concatenating the Strings "/", S, "/", and F can be parsed
(in an appropriate lexical context) as a RegularExpressionLiteral that
behaves identically to the constructed regular expression.
--- |
980 |
- |
| value-u.js |
---
esid: sec-get-regexp.prototype.source
description: >
Return value can be used to create an equivalent RegExp when the
[[OriginalFlags]] internal slot contains the `u` flag
info: |
[...]
5. Let src be R.[[OriginalSource]].
6. Let flags be R.[[OriginalFlags]].
7. Return EscapeRegExpPattern(src, flags).
21.2.3.2.4 Runtime Semantics: EscapeRegExpPattern
[...] the internal procedure that would result from evaluating S as a
Pattern[~U] (Pattern[+U] if F contains "u") must behave identically to the
internal procedure given by the constructed object's [[RegExpMatcher]]
internal slot.
--- |
1065 |
- |
| value.js |
---
esid: sec-get-regexp.prototype.source
description: Return value can be used to create an equivalent RegExp
info: |
[...]
5. Let src be R.[[OriginalSource]].
6. Let flags be R.[[OriginalFlags]].
7. Return EscapeRegExpPattern(src, flags).
21.2.3.2.4 Runtime Semantics: EscapeRegExpPattern
[...] the internal procedure that would result from evaluating S as a
Pattern[~U] (Pattern[+U] if F contains "u") must behave identically to the
internal procedure given by the constructed object's [[RegExpMatcher]]
internal slot.
--- |
1358 |
- |