Reviewers: arv,
Message:
PTAL
Description:
Ship ES6 classes.
[email protected]
BUG=v8:3330
LOG=Y
Please review this at https://codereview.chromium.org/808433002/
Base URL: https://chromium.googlesource.com/v8/v8.git@master
Affected files (+9, -9 lines):
M src/flag-definitions.h
M test/webkit/fast/js/Object-getOwnPropertyNames.js
M test/webkit/fast/js/Object-getOwnPropertyNames-expected.txt
Index: src/flag-definitions.h
diff --git a/src/flag-definitions.h b/src/flag-definitions.h
index
2efe08cdb4eeccb1a30343ecf72331b7bbe50572..f5d5f1182e9ae0bb0aaa0c6d881239774d12383a
100644
--- a/src/flag-definitions.h
+++ b/src/flag-definitions.h
@@ -184,17 +184,17 @@ DEFINE_IMPLICATION(es_staging, harmony)
// Features that are complete (but still behind --harmony/es-staging flag).
#define HARMONY_STAGED(V) \
- V(harmony_classes, \
- "harmony classes (implies block scoping & object literal extension)") \
- V(harmony_object_literals, "harmony object literal extensions") \
V(harmony_tostring, "harmony toString") \
V(harmony_templates, "harmony template literals")
// Features that are shipping (turned on by default, but internal flag
remains).
-#define HARMONY_SHIPPING(V) \
- V(harmony_numeric_literals, "harmony numeric literals") \
- V(harmony_strings, "harmony string methods") \
- V(harmony_scoping, "harmony block scoping")
+#define HARMONY_SHIPPING(V) \
+ V(harmony_numeric_literals, "harmony numeric literals") \
+ V(harmony_strings, "harmony string methods") \
+ V(harmony_scoping, "harmony block scoping") \
+ V(harmony_classes, \
+ "harmony classes (implies block scoping & object literal extension)") \
+ V(harmony_object_literals, "harmony object literal extensions")
// Once a shipping feature has proved stable in the wild, it will be
dropped
// from HARMONY_SHIPPING, all occurrences of the FLAG_ variable are
removed,
Index: test/webkit/fast/js/Object-getOwnPropertyNames-expected.txt
diff --git a/test/webkit/fast/js/Object-getOwnPropertyNames-expected.txt
b/test/webkit/fast/js/Object-getOwnPropertyNames-expected.txt
index
f15a58bd2b25346b712723bc333dcd613566bf03..ca47dec6c7e74c118aa14db5241fff4a12351497
100644
--- a/test/webkit/fast/js/Object-getOwnPropertyNames-expected.txt
+++ b/test/webkit/fast/js/Object-getOwnPropertyNames-expected.txt
@@ -47,7 +47,7 @@ PASS getSortedOwnPropertyNames(encodeURIComponent) is
['arguments', 'caller', 'l
PASS getSortedOwnPropertyNames(Object) is
['arguments', 'caller', 'create', 'defineProperties', 'defineProperty', 'deliverChangeRecords', 'freeze', 'getNotifier', 'getOwnPropertyDescriptor', 'getOwnPropertyNames', 'getOwnPropertySymbols', 'getPrototypeOf', 'is', 'isExtensible', 'isFrozen', 'isSealed', 'keys', 'length', 'name', 'observe', 'preventExtensions', 'prototype', 'seal', 'setPrototypeOf', 'unobserve']
PASS getSortedOwnPropertyNames(Object.prototype) is
['__defineGetter__', '__defineSetter__', '__lookupGetter__', '__lookupSetter__', '__proto__', 'constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf']
PASS getSortedOwnPropertyNames(Function) is
['arguments', 'caller', 'length', 'name', 'prototype']
-PASS getSortedOwnPropertyNames(Function.prototype) is
['apply', 'arguments', 'bind', 'call', 'caller', 'constructor', 'length', 'name', 'toString']
+PASS getSortedOwnPropertyNames(Function.prototype) is
['apply', 'arguments', 'bind', 'call', 'caller', 'constructor', 'length', 'name', 'toMethod', 'toString']
PASS getSortedOwnPropertyNames(Array) is
['arguments', 'caller', 'isArray', 'length', 'name', 'observe', 'prototype', 'unobserve']
PASS getSortedOwnPropertyNames(Array.prototype) is
['concat', 'constructor', 'entries', 'every', 'filter', 'forEach', 'indexOf', 'join', 'keys', 'lastIndexOf', 'length', 'map', 'pop', 'push', 'reduce', 'reduceRight', 'reverse', 'shift', 'slice', 'some', 'sort', 'splice', 'toLocaleString', 'toString', 'unshift']
PASS getSortedOwnPropertyNames(String) is
['arguments', 'caller', 'fromCharCode', 'fromCodePoint', 'length', 'name', 'prototype']
Index: test/webkit/fast/js/Object-getOwnPropertyNames.js
diff --git a/test/webkit/fast/js/Object-getOwnPropertyNames.js
b/test/webkit/fast/js/Object-getOwnPropertyNames.js
index
3008cd0c6a5f764d516a43de29fe42207340530d..4ea5d598cfad7c70e101b70615b2c790347a1151
100644
--- a/test/webkit/fast/js/Object-getOwnPropertyNames.js
+++ b/test/webkit/fast/js/Object-getOwnPropertyNames.js
@@ -74,7 +74,7 @@ var expectedPropertyNamesSet = {
"Object": "['arguments', 'caller', 'create', 'defineProperties',
'defineProperty', 'deliverChangeRecords', 'freeze', 'getNotifier', 'getOwnPropertyDescriptor',
'getOwnPropertyNames', 'getOwnPropertySymbols', 'getPrototypeOf', 'is', 'isExtensible', 'isFrozen',
'isSealed', 'keys', 'length', 'name', 'observe', 'preventExtensions', 'prototype', 'seal',
'setPrototypeOf', 'unobserve']",
"Object.prototype": "['__defineGetter__', '__defineSetter__',
'__lookupGetter__', '__lookupSetter__', '__proto__', 'constructor', 'hasOwnProperty',
'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf']",
"Function": "['arguments', 'caller', 'length', 'name', 'prototype']",
- "Function.prototype": "['apply', 'arguments', 'bind', 'call', 'caller',
'constructor', 'length', 'name', 'toString']",
+ "Function.prototype": "['apply', 'arguments', 'bind', 'call', 'caller',
'constructor', 'length', 'name', 'toMethod', 'toString']",
"Array": "['arguments', 'caller', 'isArray', 'length', 'name', 'observe',
'prototype', 'unobserve']",
"Array.prototype": "['concat', 'constructor', 'entries', 'every', 'filter',
'forEach', 'indexOf', 'join', 'keys', 'lastIndexOf', 'length', 'map', 'pop', 'push', 'reduce',
'reduceRight', 'reverse', 'shift', 'slice', 'some', 'sort', 'splice', 'toLocaleString', 'toString',
'unshift']",
"String": "['arguments', 'caller', 'fromCharCode', 'fromCodePoint', 'length',
'name', 'prototype']",
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.