WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
Attachment #267777
[HTML] Reduction
text/html
2015-12-21 21:00:23 PST
411 bytes
no flags
Details
<script> var A = { foo: function() { return [1].some(function(x) { return this.getX() === 1 }.bind(this)) }, bar: function() { return [1].some((x) => this.getX() === 1) }, getX: function() { return 1; } }; console.log(A.foo.call(A, "foo")); // Works well console.log(A.bar.call(A, "bar")); // TypeError: this.getX is not a function </script>