Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(567)

Unified Diff: src/v8natives.js

Issue 193112: Added test suite adapter for es5conform. (Closed)
Patch Set: regression-test Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/v8natives.js
diff --git a/src/v8natives.js b/src/v8natives.js
index b63ce5f1082519d0543dd276f301631e74e25af7..3f60109205e10abc9a4db02e353f2f3aee4adbe0 100644
--- a/src/v8natives.js
+++ b/src/v8natives.js
@@ -277,7 +277,7 @@ function ObjectLookupSetter(name) {
function ObjectKeys(obj) {
- if (!IS_OBJECT(obj) || IS_NULL_OR_UNDEFINED(obj))
+ if ((!IS_OBJECT(obj) || IS_NULL_OR_UNDEFINED(obj)) && !IS_FUNCTION(obj))
throw MakeTypeError('object_keys_non_object', [obj]);
return %LocalKeys(obj);
}
« no previous file with comments | « src/bootstrapper.cc ('k') | test/es5conform/README » ('j') | test/es5conform/harness-adapt.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698