@@ -30,7 +30,8 @@ $helper->line();
30
30
31
31
$ helper ->header ('Accessors ' );
32
32
$ helper ->method_matches ($ value , 'GetIsolate ' , $ isolate );
33
- $ helper ->method_export ($ value , 'Name ' );
33
+ $ helper ->method_export ($ value , 'Value ' );
34
+ $ helper ->assert ('Name() is undefined ' , $ value ->Name () instanceof \V8 \UndefinedValue);
34
35
$ helper ->assert ('GetIdentityHash is integer ' , gettype ($ value ->GetIdentityHash ()), 'integer ' );
35
36
$ helper ->space ();
36
37
@@ -50,7 +51,8 @@ $helper->line();
50
51
51
52
$ helper ->header ('Accessors ' );
52
53
$ helper ->method_matches ($ value , 'GetIsolate ' , $ isolate );
53
- $ helper ->method_export ($ value , 'Name ' );
54
+ $ helper ->method_export ($ value , 'Value ' );
55
+ $ helper ->assert ('Name() is undefined ' , $ value ->Name () instanceof \V8 \UndefinedValue);
54
56
$ helper ->assert ('GetIdentityHash is integer ' , gettype ($ value ->GetIdentityHash ()), 'integer ' );
55
57
$ helper ->space ();
56
58
@@ -69,7 +71,8 @@ $helper->line();
69
71
70
72
$ helper ->header ('Accessors ' );
71
73
$ helper ->method_matches ($ value , 'GetIsolate ' , $ isolate );
72
- $ helper ->method_export ($ value , 'Name ' );
74
+ $ helper ->method_export ($ value , 'Value ' );
75
+ $ helper ->assert ('Name() is String ' , $ value ->Name () instanceof \V8 \StringValue);
73
76
$ helper ->assert ('GetIdentityHash is integer ' , gettype ($ value ->GetIdentityHash ()), 'integer ' );
74
77
$ helper ->space ();
75
78
@@ -93,7 +96,8 @@ $helper->line();
93
96
94
97
$ helper ->header ('Accessors ' );
95
98
$ helper ->method_matches ($ value , 'GetIsolate ' , $ isolate );
96
- $ helper ->method_export ($ value , 'Name ' );
99
+ $ helper ->method_export ($ value , 'Value ' );
100
+ $ helper ->assert ('Name() is String ' , $ value ->Name () instanceof \V8 \StringValue);
97
101
$ helper ->assert ('GetIdentityHash is integer ' , gettype ($ value ->GetIdentityHash ()), 'integer ' );
98
102
$ helper ->space ();
99
103
@@ -186,12 +190,8 @@ SymbolValue extends Value: ok
186
190
Accessors:
187
191
----------
188
192
V8\SymbolValue::GetIsolate() matches expected value
189
- V8\SymbolValue->Name():
190
- object(V8\UndefinedValue)#92 (1) {
191
- ["isolate":"V8\Value":private]=>
192
- object(V8\Isolate)#3 (0) {
193
- }
194
- }
193
+ V8\SymbolValue->Value(): string(0) ""
194
+ Name() is undefined: ok
195
195
GetIdentityHash is integer: ok
196
196
197
197
@@ -266,12 +266,8 @@ SymbolValue extends NameValue: ok
266
266
Accessors:
267
267
----------
268
268
V8\SymbolValue::GetIsolate() matches expected value
269
- V8\SymbolValue->Name():
270
- object(V8\UndefinedValue)#7 (1) {
271
- ["isolate":"V8\Value":private]=>
272
- object(V8\Isolate)#3 (0) {
273
- }
274
- }
269
+ V8\SymbolValue->Value(): string(0) ""
270
+ Name() is undefined: ok
275
271
GetIdentityHash is integer: ok
276
272
277
273
@@ -334,7 +330,7 @@ Empty StringValue constructor:
334
330
335
331
Object representation:
336
332
----------------------
337
- object(V8\SymbolValue)#7 (1) {
333
+ object(V8\SymbolValue)#5 (1) {
338
334
["isolate":"V8\Value":private]=>
339
335
object(V8\Isolate)#3 (0) {
340
336
}
@@ -346,12 +342,8 @@ SymbolValue extends NameValue: ok
346
342
Accessors:
347
343
----------
348
344
V8\SymbolValue::GetIsolate() matches expected value
349
- V8\SymbolValue->Name():
350
- object(V8\StringValue)#8 (1) {
351
- ["isolate":"V8\Value":private]=>
352
- object(V8\Isolate)#3 (0) {
353
- }
354
- }
345
+ V8\SymbolValue->Value(): string(0) ""
346
+ Name() is String: ok
355
347
GetIdentityHash is integer: ok
356
348
357
349
@@ -418,7 +410,7 @@ Non-empty StringValue constructor:
418
410
419
411
Object representation:
420
412
----------------------
421
- object(V8\SymbolValue)#8 (1) {
413
+ object(V8\SymbolValue)#4 (1) {
422
414
["isolate":"V8\Value":private]=>
423
415
object(V8\Isolate)#3 (0) {
424
416
}
@@ -430,12 +422,8 @@ SymbolValue extends NameValue: ok
430
422
Accessors:
431
423
----------
432
424
V8\SymbolValue::GetIsolate() matches expected value
433
- V8\SymbolValue->Name():
434
- object(V8\StringValue)#93 (1) {
435
- ["isolate":"V8\Value":private]=>
436
- object(V8\Isolate)#3 (0) {
437
- }
438
- }
425
+ V8\SymbolValue->Value(): string(4) "test"
426
+ Name() is String: ok
439
427
GetIdentityHash is integer: ok
440
428
441
429
0 commit comments