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

Unified Diff: src/js/messages.js

Issue 1417063011: [runtime] support new Proxy() instead of Proxy.create and install getPrototypeOf trap (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: adding proxy trap strings Created 5 years, 1 month 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
« no previous file with comments | « src/heap/heap.h ('k') | src/js/proxy.js » ('j') | src/js/proxy.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/messages.js
diff --git a/src/js/messages.js b/src/js/messages.js
index 6eac9828e6189c8c70d2976fea32013c90d0f003..192f1bbd2849d2e912b6c019a90d3ccfc8a8c6f7 100644
--- a/src/js/messages.js
+++ b/src/js/messages.js
@@ -850,6 +850,9 @@ function FormatStackTrace(obj, raw_stack) {
function GetTypeName(receiver, requireConstructor) {
if (IS_NULL_OR_UNDEFINED(receiver)) return null;
+ if (%_IsJSProxy(receiver)) {
+ return "Proxy";
+ };
var constructor = receiver.constructor;
if (!constructor) {
return requireConstructor ? null :
« no previous file with comments | « src/heap/heap.h ('k') | src/js/proxy.js » ('j') | src/js/proxy.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698