Add js_eval/2 for wasm32
This commit is contained in:
@@ -573,6 +573,8 @@ enum SystemClauseType {
|
||||
ForeignCall,
|
||||
#[strum_discriminants(strum(props(Arity = "2", Name = "$define_foreign_struct")))]
|
||||
DefineForeignStruct,
|
||||
#[strum_discriminants(strum(props(Arity = "2", Name = "$js_eval")))]
|
||||
JsEval,
|
||||
#[strum_discriminants(strum(props(Arity = "3", Name = "$predicate_defined")))]
|
||||
PredicateDefined,
|
||||
#[strum_discriminants(strum(props(Arity = "3", Name = "$strip_module")))]
|
||||
@@ -1774,6 +1776,7 @@ fn generate_instruction_preface() -> TokenStream {
|
||||
&Instruction::CallLoadForeignLib |
|
||||
&Instruction::CallForeignCall |
|
||||
&Instruction::CallDefineForeignStruct |
|
||||
&Instruction::CallJsEval |
|
||||
&Instruction::CallPredicateDefined |
|
||||
&Instruction::CallStripModule |
|
||||
&Instruction::CallCurrentTime |
|
||||
@@ -2008,6 +2011,7 @@ fn generate_instruction_preface() -> TokenStream {
|
||||
&Instruction::ExecuteLoadForeignLib |
|
||||
&Instruction::ExecuteForeignCall |
|
||||
&Instruction::ExecuteDefineForeignStruct |
|
||||
&Instruction::ExecuteJsEval |
|
||||
&Instruction::ExecutePredicateDefined |
|
||||
&Instruction::ExecuteStripModule |
|
||||
&Instruction::ExecuteCurrentTime |
|
||||
|
||||
Reference in New Issue
Block a user