Skip to content
This repository has been archived by the owner on May 4, 2020. It is now read-only.

Jack-Works/proposal-strict-built-in-functions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Archived

Redirect: Please go to https://github.com/claudepache/es-legacy-function-reflection

Motivation

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();
Evaluation result

Chrome and Safari:
Firefox:
Edge:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published