Index: src/messages.js |
diff --git a/src/messages.js b/src/messages.js |
index e274f50ea6af0ac9c560ea082b5f827af9b5ed3f..044d2807d86b7a8ee67aa9f20a8c10dc18ebd8fc 100644 |
--- a/src/messages.js |
+++ b/src/messages.js |
@@ -1207,7 +1207,7 @@ var cyclic_error_marker = new $Object(); |
function GetPropertyWithoutInvokingMonkeyGetters(error, name) { |
// Climb the prototype chain until we find the holder. |
while (error && !%HasLocalProperty(error, name)) { |
- error = error.__proto__; |
+ error = %GetPrototype(error); |
} |
if (error === null) return void 0; |
if (!IS_OBJECT(error)) return error[name]; |