Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

Commit b739785

Browse files
author
Andy Earnshaw
committed
Disabling test for ES 2015 behaviour
1 parent b861f42 commit b739785

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tasks/update-tests.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,13 @@ function processTest(content) {
147147
// Make sure to use our version (not one the browser might have).
148148
content = content.replace(/\bIntl\b/g, 'IntlPolyfill');
149149

150-
var explainV8OptOut = '// This test is disabled to avoid the v8 bug outlined at https://code.google.com/p/v8/issues/detail?id=2694';
150+
var explainV8OptOut = '// This test is disabled to avoid the v8 bug outlined at https://code.google.com/p/v8/issues/detail?id=2694',
151+
explainES6OptOut = '// This test is disabled because it relies on ES 2015 behaviour, which is not implemented in environments that need this polyfill',
151152

152153
// Due to a bug in v8, we need to disable parts of the _L15 tests that
153154
// check the function property `length` is not writable
154155
content = content.replace(/^(\s*)(?=.*throw.*The length property.*function must not be writable)/gm, '$1' + explainV8OptOut + '\n$&//');
156+
content = content.replace(/^(\s*)(?=.*throw.*The length property.*function must be configurable)/gm, '$1' + explainES6OptOut + '\n$&//');
155157

156158
// There's also part of the _L15 test that a JavaScript implementation
157159
// cannot possibly pass, so we need to disable these parts too

0 commit comments

Comments
 (0)