@@ -73,7 +73,7 @@ $cache_data = null;
7373 $ source = new \V8 \ScriptCompiler \Source ($ source_string );
7474 $ helper ->assert ('Source cache data is not set ' , $ source ->getCachedData () === null );
7575 try {
76- $ script = V8 \ScriptCompiler::compile ($ context , $ source , V8 \ScriptCompiler \CompileOptions:: CONSUME_PARSER_CACHE );
76+ $ script = V8 \ScriptCompiler::compile ($ context , $ source , V8 \ScriptCompiler:: OPTION_CONSUME_PARSER_CACHE );
7777 } catch (\V8 \Exceptions \Exception $ e ) {
7878 $ helper ->exception_export ($ e );
7979 }
@@ -84,7 +84,7 @@ $cache_data = null;
8484 $ source_string = new V8 \StringValue ($ isolate , '"test " + status ' );
8585 $ source = new \V8 \ScriptCompiler \Source ($ source_string );
8686 $ helper ->assert ('Source cache data is NULL ' , $ source ->getCachedData () === null );
87- $ script = V8 \ScriptCompiler::compile ($ context , $ source , V8 \ScriptCompiler \CompileOptions:: PRODUCE_CODE_CACHE );
87+ $ script = V8 \ScriptCompiler::compile ($ context , $ source , V8 \ScriptCompiler:: OPTION_PRODUCE_CODE_CACHE );
8888 $ helper ->assert ('Source cache data is update ' , $ source ->getCachedData () != null );
8989 $ helper ->assert ('Source cache data is not rejected ' , $ source ->getCachedData ()->isRejected () === false );
9090
@@ -97,7 +97,7 @@ $cache_data = null;
9797
9898 $ source = new \V8 \ScriptCompiler \Source ($ source_string , null , $ cache_data );
9999 $ helper ->assert ('Source cache data is set ' , $ source ->getCachedData () != null );
100- $ script = V8 \ScriptCompiler::compile ($ context , $ source , V8 \ScriptCompiler \CompileOptions:: CONSUME_CODE_CACHE );
100+ $ script = V8 \ScriptCompiler::compile ($ context , $ source , V8 \ScriptCompiler:: OPTION_CONSUME_CODE_CACHE );
101101 $ helper ->assert ('Source cache data is still set ' , $ source ->getCachedData () != null );
102102 $ helper ->assert ('Source cache data is not rejected ' , $ source ->getCachedData ()->isRejected () === false );
103103
@@ -109,7 +109,7 @@ $cache_data = null;
109109 $ source_string = new V8 \StringValue ($ isolate , '"other " + status ' );
110110 $ source = new \V8 \ScriptCompiler \Source ($ source_string , null , $ cache_data );
111111 $ helper ->assert ('Source cache data is set ' , $ source ->getCachedData () != null );
112- $ script = V8 \ScriptCompiler::compile ($ context , $ source , V8 \ScriptCompiler \CompileOptions:: CONSUME_CODE_CACHE );
112+ $ script = V8 \ScriptCompiler::compile ($ context , $ source , V8 \ScriptCompiler:: OPTION_CONSUME_CODE_CACHE );
113113 $ helper ->assert ('Source cache data is still set ' , $ source ->getCachedData () != null );
114114 $ helper ->assert ('Source cache data is rejected ' , $ source ->getCachedData ()->isRejected () === true );
115115
@@ -121,7 +121,7 @@ $cache_data = null;
121121 $ source_string = new V8 \StringValue ($ isolate , ' "test " + status ' );
122122 $ source = new \V8 \ScriptCompiler \Source ($ source_string , null , $ cache_data );
123123 $ helper ->assert ('Source cache data is set ' , $ source ->getCachedData () != null );
124- $ script = V8 \ScriptCompiler::compile ($ context , $ source , V8 \ScriptCompiler \CompileOptions:: CONSUME_CODE_CACHE );
124+ $ script = V8 \ScriptCompiler::compile ($ context , $ source , V8 \ScriptCompiler:: OPTION_CONSUME_CODE_CACHE );
125125 $ helper ->assert ('Source cache data is still set ' , $ source ->getCachedData () != null );
126126 $ helper ->assert ('Source cache data is not rejected ' , $ source ->getCachedData ()->isRejected () !== false );
127127
@@ -133,7 +133,7 @@ $cache_data = null;
133133 $ source_string = new V8 \StringValue ($ isolate , '"test " + status ' );
134134 $ source = new \V8 \ScriptCompiler \Source ($ source_string , null , $ cache_data );
135135 $ helper ->assert ('Source cache data is set ' , $ source ->getCachedData () != null );
136- $ script = V8 \ScriptCompiler::compile ($ context , $ source , V8 \ScriptCompiler \CompileOptions:: PRODUCE_CODE_CACHE );
136+ $ script = V8 \ScriptCompiler::compile ($ context , $ source , V8 \ScriptCompiler:: OPTION_PRODUCE_CODE_CACHE );
137137 $ helper ->assert ('Source cache data is still set ' , $ source ->getCachedData () != null );
138138 $ helper ->assert ('Source cache data is rejected ' , $ source ->getCachedData ()->isRejected () === true );
139139
@@ -146,7 +146,7 @@ $cache_data = null;
146146 $ source_string = new V8 \StringValue ($ isolate , '"test " + status ' );
147147 $ source = new \V8 \ScriptCompiler \Source ($ source_string , null , $ cache_data );
148148 $ helper ->assert ('Source cache data is set ' , $ source ->getCachedData () != null );
149- $ script = V8 \ScriptCompiler::compile ($ context , $ source , V8 \ScriptCompiler \CompileOptions:: CONSUME_PARSER_CACHE );
149+ $ script = V8 \ScriptCompiler::compile ($ context , $ source , V8 \ScriptCompiler:: OPTION_CONSUME_PARSER_CACHE );
150150 $ helper ->assert ('Source cache data is still set ' , $ source ->getCachedData () != null );
151151 $ helper ->assert ('Source cache data is not rejected ' , $ source ->getCachedData ()->isRejected () !== true );
152152
@@ -159,7 +159,7 @@ $cache_data = null;
159159 $ source_string = new V8 \StringValue ($ isolate , '"test " + status ' );
160160 $ source = new \V8 \ScriptCompiler \Source ($ source_string );
161161 $ helper ->assert ('Source cache data is NULL ' , $ source ->getCachedData () === null );
162- $ script = V8 \ScriptCompiler::compile ($ context , $ source , V8 \ScriptCompiler \CompileOptions:: PRODUCE_PARSER_CACHE );
162+ $ script = V8 \ScriptCompiler::compile ($ context , $ source , V8 \ScriptCompiler:: OPTION_PRODUCE_PARSER_CACHE );
163163 $ helper ->assert ('Source cache data is NOT updated ' , $ source ->getCachedData () === null );
164164
165165 $ helper ->line ();
@@ -179,7 +179,7 @@ $parser_cache_src= 'function test(arg1, args) {
179179 $ source_string = new V8 \StringValue ($ isolate , $ parser_cache_src );
180180 $ source = new \V8 \ScriptCompiler \Source ($ source_string );
181181 $ helper ->assert ('Source cache data is NULL ' , $ source ->getCachedData () === null );
182- $ script = V8 \ScriptCompiler::compile ($ context , $ source , V8 \ScriptCompiler \CompileOptions:: PRODUCE_PARSER_CACHE );
182+ $ script = V8 \ScriptCompiler::compile ($ context , $ source , V8 \ScriptCompiler:: OPTION_PRODUCE_PARSER_CACHE );
183183 $ helper ->assert ('Source cache data is update ' , $ source ->getCachedData () != null );
184184 $ helper ->assert ('Source cache data is not rejected ' , $ source ->getCachedData ()->isRejected () === false );
185185
@@ -195,7 +195,7 @@ $parser_cache_src= 'function test(arg1, args) {
195195 $ source_string = new V8 \StringValue ($ isolate , $ parser_cache_src );
196196 $ source = new \V8 \ScriptCompiler \Source ($ source_string , null , $ cache_data );
197197 $ helper ->assert ('Source cache data is set ' , $ source ->getCachedData () != null );
198- $ script = V8 \ScriptCompiler::compile ($ context , $ source , V8 \ScriptCompiler \CompileOptions:: CONSUME_PARSER_CACHE );
198+ $ script = V8 \ScriptCompiler::compile ($ context , $ source , V8 \ScriptCompiler:: OPTION_CONSUME_PARSER_CACHE );
199199 $ helper ->assert ('Source cache data is still set ' , $ source ->getCachedData () != null );
200200 $ helper ->assert ('Source cache data is not rejected ' , $ source ->getCachedData ()->isRejected () === false );
201201
@@ -210,7 +210,7 @@ $parser_cache_src= 'function test(arg1, args) {
210210 $ source = new \V8 \ScriptCompiler \Source ($ source_string , null , $ cache_data );
211211 $ helper ->assert ('Source cache data is set ' , $ source ->getCachedData () != null );
212212 try {
213- $ script = V8 \ScriptCompiler::compile ($ context , $ source , V8 \ScriptCompiler \CompileOptions:: CONSUME_PARSER_CACHE );
213+ $ script = V8 \ScriptCompiler::compile ($ context , $ source , V8 \ScriptCompiler:: OPTION_CONSUME_PARSER_CACHE );
214214 } catch (\V8 \Exceptions \TryCatchException $ e ) {
215215 $ helper ->exception_export ($ e );
216216 }
@@ -225,7 +225,7 @@ $parser_cache_src= 'function test(arg1, args) {
225225 $ source_string = new V8 \StringValue ($ isolate , 'function test2() { return 1+1;} ' );
226226 $ source = new \V8 \ScriptCompiler \Source ($ source_string , null , $ cache_data );
227227 $ helper ->assert ('Source cache data is set ' , $ source ->getCachedData () != null );
228- $ script = V8 \ScriptCompiler::compile ($ context , $ source , V8 \ScriptCompiler \CompileOptions:: CONSUME_PARSER_CACHE );
228+ $ script = V8 \ScriptCompiler::compile ($ context , $ source , V8 \ScriptCompiler:: OPTION_CONSUME_PARSER_CACHE );
229229 $ helper ->assert ('Source cache data is still set ' , $ source ->getCachedData () != null );
230230 $ helper ->assert ('Source cache data is rejected ' , $ source ->getCachedData ()->isRejected () === true );
231231 $ helper ->assert ('Source cache data is not changed ' , $ source ->getCachedData ()->getData () === $ bin );
@@ -239,7 +239,7 @@ $parser_cache_src= 'function test(arg1, args) {
239239 $ source_string = new V8 \StringValue ($ isolate , ' ' . $ parser_cache_src );
240240 $ source = new \V8 \ScriptCompiler \Source ($ source_string , null , $ cache_data );
241241 $ helper ->assert ('Source cache data is set ' , $ source ->getCachedData () != null );
242- $ script = V8 \ScriptCompiler::compile ($ context , $ source , V8 \ScriptCompiler \CompileOptions:: CONSUME_PARSER_CACHE );
242+ $ script = V8 \ScriptCompiler::compile ($ context , $ source , V8 \ScriptCompiler:: OPTION_CONSUME_PARSER_CACHE );
243243 $ helper ->assert ('Source cache data is still set ' , $ source ->getCachedData () != null );
244244 $ helper ->assert ('Source cache data is rejected ' , $ source ->getCachedData ()->isRejected () === true );
245245
@@ -252,7 +252,7 @@ $parser_cache_src= 'function test(arg1, args) {
252252 $ source_string = new V8 \StringValue ($ isolate , $ parser_cache_src );
253253 $ source = new \V8 \ScriptCompiler \Source ($ source_string , null , $ cache_data );
254254 $ helper ->assert ('Source cache data is set ' , $ source ->getCachedData () != null );
255- $ script = V8 \ScriptCompiler::compile ($ context , $ source , V8 \ScriptCompiler \CompileOptions:: CONSUME_CODE_CACHE );
255+ $ script = V8 \ScriptCompiler::compile ($ context , $ source , V8 \ScriptCompiler:: OPTION_CONSUME_CODE_CACHE );
256256 $ helper ->assert ('Source cache data is still set ' , $ source ->getCachedData () != null );
257257 $ helper ->assert ('Source cache data is not rejected ' , $ source ->getCachedData ()->isRejected () === false );
258258
0 commit comments