Axetroy

Results 156 issues of Axetroy

虽然代码,很多都是从你这里复制粘贴过去的... 但是也修复了一些bug。 目前在一个一个的语法实现,附带测试用例 最后说一下,这个仓库,真的很有学习意义,很赞。 https://github.com/axetroy/vm.js

例如运行这段代码: ```javascript function test(name){ return "hello " + name; } console.log(test.length); // 正常情况下,应该是1, 但实际上是0 module.exports = test; ``` 查看了相关源码,在下面的: https://github.com/bramblex/jsjs/blob/b0f67112f38ceb7eba8ecbf9357b8d6706e0dab1/src/eval.ts#L247 ```typescript FunctionExpression: (node: ESTree.FunctionExpression, scope: Scope) => { return function...

https://github.com/bramblex/jsjs/blob/b0f67112f38ceb7eba8ecbf9357b8d6706e0dab1/src/eval.ts#L183 这里不应该是设置父级的作用域。 应该是设置for循环里的新作用域``new_scope`` 亲测, 下面这个例子跑不痛。 ```typescript import test from "ava"; import * as fs from "fs"; import vm from "../src/vm"; test("ForInStatement-1", t => { const sandbox: any = vm.createContext({}); const...

**V version:** V 0.1.29 ed874ff **OS:** macos 11.0.1 **What did you do?** I wrote a function to traverse directories using goroutine ```v // main.v // run: v run main.v module...

Bug

运行 ```bash $ npm audit ``` ``` === npm audit security report === ┌──────────────────────────────────────────────────────────────────────────────┐ │ Manual Review │ │ Some vulnerabilities require your attention to resolve │ │ │ │...

As is well known, Facebook likes to get involved in politics, even in open-source projects. Just like in the current situation in Ukraine, supporting them and providing humanitarian aid because...

Status: Unconfirmed

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of...

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of...

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of...

### The Problem After loading the audio for the first time I tried to switch to a certain point in time, then get the current time and I found that...

bug