summaryrefslogtreecommitdiff
path: root/test/built-ins/RegExp/prototype/Symbol.match/g-init-lastindex-err.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/RegExp/prototype/Symbol.match/g-init-lastindex-err.js')
-rw-r--r--test/built-ins/RegExp/prototype/Symbol.match/g-init-lastindex-err.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/built-ins/RegExp/prototype/Symbol.match/g-init-lastindex-err.js b/test/built-ins/RegExp/prototype/Symbol.match/g-init-lastindex-err.js
index 73d0f249a..1a6bd1030 100644
--- a/test/built-ins/RegExp/prototype/Symbol.match/g-init-lastindex-err.js
+++ b/test/built-ins/RegExp/prototype/Symbol.match/g-init-lastindex-err.js
@@ -15,7 +15,9 @@ features: [Symbol.match]
---*/
var r = /./g;
-Object.defineProperty(r, 'lastIndex', { writable: false });
+Object.defineProperty(r, 'lastIndex', {
+ writable: false
+});
assert.throws(TypeError, function() {
r[Symbol.match]('');