Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index 2f5c52098dca0adcdffb9f5e730b46de9e492f05..fcd4575a34707b1c313d9c9734e1bbb1017a5269 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -1754,6 +1754,17 @@ BUILTIN(SymbolConstructor_ConstructStub) { |
} |
+// ES6 19.1.3.6 Object.prototype.toString |
+BUILTIN(ObjectProtoToString) { |
+ HandleScope scope(isolate); |
+ Handle<Object> object = args.at<Object>(0); |
+ Handle<String> result; |
+ ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
+ isolate, result, JSObject::ObjectProtoToString(isolate, object)); |
+ return *result; |
+} |
+ |
+ |
namespace { |
// ES6 section 9.5.15 ProxyCreate (target, handler) |