@@ -420,6 +420,7 @@ impl Interpreter {
420420 . realm
421421 . environment
422422 . get_binding_value ( "Boolean" )
423+ . expect ( "Boolean was not initialized" )
423424 . get_field ( PROTOTYPE ) ;
424425
425426 Ok ( Value :: new_object_from_prototype (
@@ -432,6 +433,7 @@ impl Interpreter {
432433 . realm
433434 . environment
434435 . get_binding_value ( "Number" )
436+ . expect ( "Number was not initialized" )
435437 . get_field ( PROTOTYPE ) ;
436438 Ok ( Value :: new_object_from_prototype (
437439 proto,
@@ -443,6 +445,7 @@ impl Interpreter {
443445 . realm
444446 . environment
445447 . get_binding_value ( "Number" )
448+ . expect ( "Number was not initialized" )
446449 . get_field ( PROTOTYPE ) ;
447450
448451 Ok ( Value :: new_object_from_prototype (
@@ -455,6 +458,7 @@ impl Interpreter {
455458 . realm
456459 . environment
457460 . get_binding_value ( "String" )
461+ . expect ( "String was not initialized" )
458462 . get_field ( PROTOTYPE ) ;
459463
460464 Ok ( Value :: new_object_from_prototype (
@@ -467,6 +471,7 @@ impl Interpreter {
467471 . realm
468472 . environment
469473 . get_binding_value ( "Symbol" )
474+ . expect ( "Symbol was not initialized" )
470475 . get_field ( PROTOTYPE ) ;
471476
472477 Ok ( Value :: new_object_from_prototype (
@@ -479,6 +484,7 @@ impl Interpreter {
479484 . realm
480485 . environment
481486 . get_binding_value ( "BigInt" )
487+ . expect ( "BigInt was not initialized" )
482488 . get_field ( PROTOTYPE ) ;
483489 let bigint_obj =
484490 Value :: new_object_from_prototype ( proto, ObjectData :: BigInt ( bigint. clone ( ) ) ) ;
@@ -573,7 +579,6 @@ impl Executable for Node {
573579 let _timer = BoaProfiler :: global ( ) . start_event ( "Executable" , "exec" ) ;
574580 match * self {
575581 Node :: Const ( Const :: Null ) => Ok ( Value :: null ( ) ) ,
576- Node :: Const ( Const :: Undefined ) => Ok ( Value :: undefined ( ) ) ,
577582 Node :: Const ( Const :: Num ( num) ) => Ok ( Value :: rational ( num) ) ,
578583 Node :: Const ( Const :: Int ( num) ) => Ok ( Value :: integer ( num) ) ,
579584 Node :: Const ( Const :: BigInt ( ref num) ) => Ok ( Value :: from ( num. clone ( ) ) ) ,
0 commit comments