Archived
Redirect: Please go to https://github.com/claudepache/es-legacy-function-reflection
This code is evaluated differently in Chrome, Safari, Firefox and Edge.
function getOwnPropertyDescriptor() {
console.log("caller", getOwnPropertyDescriptor.caller);
}
var p = new Proxy({ a: "test" }, { getOwnPropertyDescriptor });
function test() {
"use strict";
return Reflect.getOwnPropertyDescriptor(p, "a");
}
test();