felixge / felixge/node-sandboxed-module

instanceof Function broken inside of sandboxed module

Open
#44 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
343
Forks
41
PR merge metrics
No merged PRs in 30d

Description

I have a sandboxed module with the following contents:

``` js
var foo = function () {}
console.log(1, typeof foo);
console.log(2, foo instanceof Function);
// => 1 'function'
// => 2 false
```

`foo instanceof Function` should return `true`, but it returns `false`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.