handle "static" contexts in es7.functionBind - #1518

This commit is contained in:
Sebastian McKenzie
2015-05-14 16:37:44 +01:00
parent 7407b37bd9
commit 724bf52929
4 changed files with 48 additions and 7 deletions

View File

@@ -0,0 +1,5 @@
var bar = function () {};
foo::bar;
var foo = {};
::foo.bar;

View File

@@ -0,0 +1,7 @@
"use strict";
var bar = function bar() {};
bar.bind(foo);
var foo = {};
foo.bar.bind(foo);