Index: test/mjsunit/es6/regexp-tostring.js |
diff --git a/test/mjsunit/es6/regexp-tostring.js b/test/mjsunit/es6/regexp-tostring.js |
index 8e6857ee89b8a2045dba7e7af10321ac65c5be93..3deeeb7ed8894d440d3fabd1172da5203d829c39 100644 |
--- a/test/mjsunit/es6/regexp-tostring.js |
+++ b/test/mjsunit/es6/regexp-tostring.js |
@@ -6,7 +6,7 @@ var log = []; |
var fake = |
{ |
- pattern: function() { |
+ get source() { |
log.push("p"); |
return { |
toString: function() { |
@@ -15,7 +15,7 @@ var fake = |
} |
}; |
}, |
- flags: function() { |
+ get flags() { |
log.push("f"); |
return { |
toString: function() { |
@@ -38,8 +38,8 @@ function testThrows(x) { |
testThrows(1); |
testThrows(null); |
-Number.prototype.pattern = () => "a"; |
-Number.prototype.flags = () => "b"; |
+Number.prototype.source = "a"; |
+Number.prototype.flags = "b"; |
testThrows(1); |
assertEquals("/pattern/flags", RegExp.prototype.toString.call(fake)); |