Skip to content

Commit

Permalink
Merge pull request #240 from XmiliaH/fix-239
Browse files Browse the repository at this point in the history
Compile now compiles VM code
  • Loading branch information
patriksimek committed Sep 13, 2019
2 parents c71448f + 4b4ce87 commit 8d5a8dd
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,13 @@ class VMScript {
}

/**
* Noop.
* We need to change the code depending whether it is run in VM or NodeVM.
* This function cannot decide for which to compile.
* This code will be compiled to VM code.
*
* @deprecated Will be done on first run
* @return {VMScript}
*/

compile() {
return this;
return this._compileVM();
}

/**
Expand Down

0 comments on commit 8d5a8dd

Please sign in to comment.