test262/website/json/ch09.json

778 lines
226 KiB
JSON

{
"testsCollection":{
"name":"Chapter - ch09",
"numTests":"128",
"tests":[
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgcHJpbWl0aXZlIGNvbnZlcnNpb24gZnJvbSBvYmplY3QgaXMgYSBkZWZhdWx0IHZhbHVlIGZvciB0aGUgT2JqZWN0CiAqCiAqIEBwYXRoIGNoMDkvOS4xL1M5LjFfQTFfVDEuanMKICogQGRlc2NyaXB0aW9uIFVzaW5nIG9wZXJhdG9yIE51bWJlci4gVGhlIG9wZXJhdG9yIGNhbGxzIFRvUHJpbWl0aXZlIHdpdGggaGludCBOdW1iZXIKICovCgovLyBDSEVDSyMxCnZhciBvYmplY3QgPSB7dmFsdWVPZjogZnVuY3Rpb24oKSB7cmV0dXJuICIxIn0sIHRvU3RyaW5nOiBmdW5jdGlvbigpIHtyZXR1cm4gMH19OwppZiAoTnVtYmVyKG9iamVjdCkgIT09IDEpIHsKICAkRVJST1IoJyMxOiB2YXIgb2JqZWN0ID0ge3ZhbHVlT2Y6IGZ1bmN0aW9uKCkge3JldHVybiAiMSJ9LCB0b1N0cmluZzogZnVuY3Rpb24oKSB7cmV0dXJuIDB9fTsgTnVtYmVyKG9iamVjdCkgPT09IDEuIEFjdHVhbDogJyArIChOdW1iZXIob2JqZWN0KSkpOwp9CgovLyBDSEVDSyMyCnZhciBvYmplY3QgPSB7dmFsdWVPZjogZnVuY3Rpb24oKSB7cmV0dXJuIHt9fSwgdG9TdHJpbmc6IGZ1bmN0aW9uKCkge3JldHVybiAiMCJ9fTsKaWYgKE51bWJlcihvYmplY3QpICE9PSAwKSB7CiAgJEVSUk9SKCcjMjogdmFyIG9iamVjdCA9IHt2YWx1ZU9mOiBmdW5jdGlvbigpIHtyZXR1cm4ge319LCB0b1N0cmluZzogZnVuY3Rpb24oKSB7cmV0dXJuICIwIn19OyBOdW1iZXIob2JqZWN0KSA9PT0gMC4gQWN0dWFsOiAnICsgKE51bWJlcihvYmplY3QpKSk7Cn0KCgo=",
"commentary":"Result of primitive conversion from object is a default value for the Object",
"description":"Using operator Number. The operator calls ToPrimitive with hint Number",
"path":"TestCases/ch09/9.1/S9.1_A1_T1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgcHJpbWl0aXZlIGNvbnZlcnNpb24gZnJvbSBvYmplY3QgaXMgYSBkZWZhdWx0IHZhbHVlIGZvciB0aGUgT2JqZWN0CiAqCiAqIEBwYXRoIGNoMDkvOS4xL1M5LjFfQTFfVDIuanMKICogQGRlc2NyaXB0aW9uIFVzaW5nIG9wZXJhdG9yIE51bWJlci4gVGhpcyBvcGVyYXRvciBjYWxscyBUb1ByaW1pdGl2ZSB3aXRoIGhpbnQgTnVtYmVyCiAqLwoKLy8gQ0hFQ0sjMQp2YXIgb2JqZWN0ID0ge3ZhbHVlT2Y6IGZ1bmN0aW9uKCkge3JldHVybiAwfSwgdG9TdHJpbmc6IGZ1bmN0aW9uKCkge3JldHVybiAxfX07CmlmIChTdHJpbmcob2JqZWN0KSAhPT0gIjEiKSB7CiAgJEVSUk9SKCcjMTogdmFyIG9iamVjdCA9IHt2YWx1ZU9mOiBmdW5jdGlvbigpIHtyZXR1cm4gMH0sIHRvU3RyaW5nOiBmdW5jdGlvbigpIHtyZXR1cm4gMX19OyBTdHJpbmcob2JqZWN0KSA9PT0gIjEiLiBBY3R1YWw6ICcgKyAoU3RyaW5nKG9iamVjdCkpKTsKfQoKLy8gQ0hFQ0sjMgp2YXIgb2JqZWN0ID0ge3ZhbHVlT2Y6IGZ1bmN0aW9uKCkge3JldHVybiAwfSwgdG9TdHJpbmc6IGZ1bmN0aW9uKCkge3JldHVybiB7fX19OwppZiAoU3RyaW5nKG9iamVjdCkgIT09ICIwIikgewogICRFUlJPUignIzI6IHZhciBvYmplY3QgPSB7dmFsdWVPZjogZnVuY3Rpb24oKSB7cmV0dXJuIDB9LCB0b1N0cmluZzogZnVuY3Rpb24oKSB7cmV0dXJuIHt9fX07IFN0cmluZyhvYmplY3QpID09PSAiMCIuIEFjdHVhbDogJyArIChTdHJpbmcob2JqZWN0KSkpOwp9CgoK",
"commentary":"Result of primitive conversion from object is a default value for the Object",
"description":"Using operator Number. This operator calls ToPrimitive with hint Number",
"path":"TestCases/ch09/9.1/S9.1_A1_T2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgcHJpbWl0aXZlIGNvbnZlcnNpb24gZnJvbSBvYmplY3QgaXMgYSBkZWZhdWx0IHZhbHVlIGZvciB0aGUgT2JqZWN0CiAqCiAqIEBwYXRoIGNoMDkvOS4xL1M5LjFfQTFfVDMuanMKICogQGRlc2NyaXB0aW9uIFVzaW5nIG9wZXJhdG9yICIrIi4gVGhpcyBvcGVyYXRvciBmaXJzdGx5IGNhbGxzIFRvUHJpbWl0aXZlIGFuZCB0aGVuIGNhbGxzIFRvU3RyaW5nIG9yIFRvTnVtYmVyCiAqLwoKLy8gQ0hFQ0sjMQp2YXIgb2JqZWN0ID0ge3ZhbHVlT2Y6IGZ1bmN0aW9uKCkge3JldHVybiAxfSwgdG9TdHJpbmc6IGZ1bmN0aW9uKCkge3JldHVybiAwfX07CmlmIChvYmplY3QgKyAiIiAhPT0gIjEiKSB7CiAgJEVSUk9SKCcjMTogdmFyIG9iamVjdCA9IHt2YWx1ZU9mOiBmdW5jdGlvbigpIHtyZXR1cm4gMX0sIHRvU3RyaW5nOiBmdW5jdGlvbigpIHtyZXR1cm4gMH19OyBvYmplY3QgKyAiIiA9PT0gIjEiLiBBY3R1YWw6ICcgKyAob2JqZWN0ICsgIiIpKTsKfQoKLy8gQ0hFQ0sjMgp2YXIgb2JqZWN0ID0ge3ZhbHVlT2Y6IGZ1bmN0aW9uKCkge3JldHVybiAiMSJ9LCB0b1N0cmluZzogZnVuY3Rpb24oKSB7cmV0dXJuIDB9fTsKaWYgKG9iamVjdCArIDAgIT09ICIxMCIpIHsKICAkRVJST1IoJyMyOiB2YXIgb2JqZWN0ID0ge3ZhbHVlT2Y6IGZ1bmN0aW9uKCkge3JldHVybiAiMSJ9LCB0b1N0cmluZzogZnVuY3Rpb24oKSB7cmV0dXJuIDB9fTsgb2JqZWN0ICsgMCA9PT0gIjEwIi4gQWN0dWFsOiAnICsgKG9iamVjdCArIDApKTsKfQoKCg==",
"commentary":"Result of primitive conversion from object is a default value for the Object",
"description":"Using operator \"+\". This operator firstly calls ToPrimitive and then calls ToString or ToNumber",
"path":"TestCases/ch09/9.1/S9.1_A1_T3.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgcHJpbWl0aXZlIGNvbnZlcnNpb24gZnJvbSBvYmplY3QgaXMgYSBkZWZhdWx0IHZhbHVlIGZvciB0aGUgT2JqZWN0CiAqCiAqIEBwYXRoIGNoMDkvOS4xL1M5LjFfQTFfVDQuanMKICogQGRlc2NyaXB0aW9uIFVzaW5nIG9wZXJhdG9yICI8Ii4gVGhlIG9wZXJhdG9yIGZpcnN0bHkgY2FsbHMgVG9QcmltaXRpdmUgYW5kIHRoZW4gY2FsbHMgVG9TdHJpbmcgb3IgVG9OdW1iZXIKICovCgovLyBDSEVDSyMxCnZhciBvYmplY3QgPSB7dmFsdWVPZjogZnVuY3Rpb24oKSB7cmV0dXJuIC0yfSwgdG9TdHJpbmc6IGZ1bmN0aW9uKCkge3JldHVybiAiLTIifX07CmlmICgiLTEiIDwgb2JqZWN0KSB7CiAgJEVSUk9SKCcjMTogdmFyIG9iamVjdCA9IHt2YWx1ZU9mOiBmdW5jdGlvbigpIHtyZXR1cm4gLTJ9LCB0b1N0cmluZzogZnVuY3Rpb24oKSB7cmV0dXJuICItMiJ9fTsgIi0xIiA8IG9iamVjdCcpOwp9CgovLyBDSEVDSyMyCnZhciBvYmplY3QgPSB7dmFsdWVPZjogZnVuY3Rpb24oKSB7cmV0dXJuICItMiJ9LCB0b1N0cmluZzogZnVuY3Rpb24oKSB7cmV0dXJuIC0yfX07CmlmIChvYmplY3QgPCAiLTEiKSB7CiAgJEVSUk9SKCcjMjogdmFyIG9iamVjdCA9IHt2YWx1ZU9mOiBmdW5jdGlvbigpIHtyZXR1cm4gIi0yIn0sIHRvU3RyaW5nOiBmdW5jdGlvbigpIHtyZXR1cm4gLTJ9fTsgb2JqZWN0IDwgIi0xIicpOwp9CgoK",
"commentary":"Result of primitive conversion from object is a default value for the Object",
"description":"Using operator \"<\". The operator firstly calls ToPrimitive and then calls ToString or ToNumber",
"path":"TestCases/ch09/9.1/S9.1_A1_T4.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgYm9vbGVhbiBjb252ZXJzaW9uIGZyb20gdW5kZWZpbmVkIHZhbHVlIGlzIGZhbHNlCiAqCiAqIEBwYXRoIGNoMDkvOS4yL1M5LjJfQTFfVDEuanMKICogQGRlc2NyaXB0aW9uIFVuZGVmaW5lZCwgdm9pZCBhbmQgb3RoZXJzIGFyZSBjb252ZXJ0ZWQgdG8gQm9vbGVhbiBieSBleHBsaWNpdCB0cmFuc2Zvcm1hdGlvbgogKi8KCi8vIENIRUNLIzEKaWYgKEJvb2xlYW4odW5kZWZpbmVkKSAhPT0gZmFsc2UpIHsKICAkRVJST1IoJyMxOiBCb29sZWFuKHVuZGVmaW5lZCkgPT09IGZhbHNlLiBBY3R1YWw6ICcgKyAoQm9vbGVhbih1bmRlZmluZWQpKSk7Cn0KCi8vIENIRUNLIzIKaWYgKEJvb2xlYW4odm9pZCAwKSAhPT0gZmFsc2UpIHsKICAkRVJST1IoJyMyOiBCb29sZWFuKHVuZGVmaW5lZCkgPT09IGZhbHNlLiBBY3R1YWw6ICcgKyAoQm9vbGVhbih1bmRlZmluZWQpKSk7Cn0KCi8vIENIRUNLIzMKaWYgKEJvb2xlYW4oZXZhbCgidmFyIHgiKSkgIT09IGZhbHNlKSB7CiAgJEVSUk9SKCcjMzogQm9vbGVhbihldmFsKCJ2YXIgeCIpKSA9PT0gZmFsc2UuIEFjdHVhbDogJyArIChCb29sZWFuKGV2YWwoInZhciB4IikpKSk7Cn0KCi8vIENIRUNLIzQKaWYgKEJvb2xlYW4oKSAhPT0gZmFsc2UpIHsKICAkRVJST1IoJyM0OiBCb29sZWFuKCkgPT09IGZhbHNlLiBBY3R1YWw6ICcgKyAoQm9vbGVhbigpKSk7Cn0KCg==",
"commentary":"Result of boolean conversion from undefined value is false",
"description":"Undefined, void and others are converted to Boolean by explicit transformation",
"path":"TestCases/ch09/9.2/S9.2_A1_T1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgYm9vbGVhbiBjb252ZXJzaW9uIGZyb20gdW5kZWZpbmVkIHZhbHVlIGlzIGZhbHNlCiAqCiAqIEBwYXRoIGNoMDkvOS4yL1M5LjJfQTFfVDIuanMKICogQGRlc2NyaXB0aW9uIFVuZGVmaW5lZCwgdm9pZCBhbmQgb3RoZXJzIGFyZSBjb252ZXJ0ZWQgdG8gQm9vbGVhbiBieSBpbXBsaWNpdCB0cmFuc2Zvcm1hdGlvbgogKi8KCi8vIENIRUNLIzEKaWYgKCEodW5kZWZpbmVkKSAhPT0gdHJ1ZSkgewogICRFUlJPUignIzE6ICEodW5kZWZpbmVkKSA9PT0gdHJ1ZS4gQWN0dWFsOiAnICsgKCEodW5kZWZpbmVkKSkpOwp9CgovLyBDSEVDSyMyCmlmICghKHZvaWQgMCkgIT09IHRydWUpIHsKICAkRVJST1IoJyMyOiAhKHVuZGVmaW5lZCkgPT09IHRydWUuIEFjdHVhbDogJyArICghKHVuZGVmaW5lZCkpKTsKfQoKLy8gQ0hFQ0sjMwppZiAoIShldmFsKCJ2YXIgeCIpKSAhPT0gdHJ1ZSkgewogICRFUlJPUignIzM6ICEoZXZhbCgidmFyIHgiKSkgPT09IHRydWUuIEFjdHVhbDogJyArICghKGV2YWwoInZhciB4IikpKSk7Cn0KCg==",
"commentary":"Result of boolean conversion from undefined value is false",
"description":"Undefined, void and others are converted to Boolean by implicit transformation",
"path":"TestCases/ch09/9.2/S9.2_A1_T2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgYm9vbGVhbiBjb252ZXJzaW9uIGZyb20gbnVsbCB2YWx1ZSBpcyBmYWxzZQogKgogKiBAcGF0aCBjaDA5LzkuMi9TOS4yX0EyX1QxLmpzCiAqIEBkZXNjcmlwdGlvbiBudWxsIGNvbnZlcnQgdG8gQm9vbGVhbiBieSBleHBsaWNpdCB0cmFuc2Zvcm1hdGlvbgogKi8KCi8vIENIRUNLIzEKaWYgKEJvb2xlYW4obnVsbCkgIT09IGZhbHNlKSB7CiAgJEVSUk9SKCcjMTogQm9vbGVhbihudWxsKSA9PT0gZmFsc2UuIEFjdHVhbDogJyArIChCb29sZWFuKG51bGwpKSk7IAp9Cgo=",
"commentary":"Result of boolean conversion from null value is false",
"description":"null convert to Boolean by explicit transformation",
"path":"TestCases/ch09/9.2/S9.2_A2_T1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgYm9vbGVhbiBjb252ZXJzaW9uIGZyb20gbnVsbCB2YWx1ZSBpcyBmYWxzZQogKgogKiBAcGF0aCBjaDA5LzkuMi9TOS4yX0EyX1QyLmpzCiAqIEBkZXNjcmlwdGlvbiBudWxsIGNvbnZlcnQgdG8gQm9vbGVhbiBieSBpbXBsaWNpdCB0cmFuc2Zvcm1hdGlvbgogKi8KCi8vIENIRUNLIzEKaWYgKCEobnVsbCkgIT09IHRydWUpIHsKICAkRVJST1IoJyMxOiAhKG51bGwpID09PSB0cnVlLiBBY3R1YWw6ICcgKyAoIShudWxsKSkpOyAKfQoK",
"commentary":"Result of boolean conversion from null value is false",
"description":"null convert to Boolean by implicit transformation",
"path":"TestCases/ch09/9.2/S9.2_A2_T2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgYm9vbGVhbiBjb252ZXJzaW9uIGZyb20gYm9vbGVhbiB2YWx1ZSBpcyBubyBjb252ZXJzaW9uCiAqCiAqIEBwYXRoIGNoMDkvOS4yL1M5LjJfQTNfVDEuanMKICogQGRlc2NyaXB0aW9uIHRydWUgYW5kIGZhbHNlIGNvbnZlcnQgdG8gQm9vbGVhbiBieSBleHBsaWNpdCB0cmFuc2Zvcm1hdGlvbgogKi8KCi8vIENIRUNLIzEgCmlmIChCb29sZWFuKHRydWUpICE9PSB0cnVlKSB7CiAgJEVSUk9SKCcjMTogQm9vbGVhbih0cnVlKSA9PT0gdHJ1ZS4gQWN0dWFsOiAnICsgKEJvb2xlYW4odHJ1ZSkpKTsJCn0KCi8vIENIRUNLIzIKaWYgKEJvb2xlYW4oZmFsc2UpICE9PSBmYWxzZSkgewogICRFUlJPUignIzI6IEJvb2xlYW4oZmFsc2UpID09PSBmYWxzZS4gQWN0dWFsOiAnICsgKEJvb2xlYW4oZmFsc2UpKSk7Cn0KCg==",
"commentary":"Result of boolean conversion from boolean value is no conversion",
"description":"true and false convert to Boolean by explicit transformation",
"path":"TestCases/ch09/9.2/S9.2_A3_T1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgYm9vbGVhbiBjb252ZXJzaW9uIGZyb20gYm9vbGVhbiB2YWx1ZSBpcyBubyBjb252ZXJzaW9uCiAqCiAqIEBwYXRoIGNoMDkvOS4yL1M5LjJfQTNfVDIuanMKICogQGRlc2NyaXB0aW9uIHRydWUgYW5kIGZhbHNlIGNvbnZlcnQgdG8gQm9vbGVhbiBieSBpbXBsaWNpdCB0cmFuc2Zvcm1hdGlvbgogKi8KCi8vIENIRUNLIzEgCmlmICghKHRydWUpICE9PSBmYWxzZSkgewogICRFUlJPUignIzE6ICEodHJ1ZSkgPT09IGZhbHNlLiBBY3R1YWw6ICcgKyAoISh0cnVlKSkpOwkKfQoKLy8gQ0hFQ0sjMgppZiAoIShmYWxzZSkgIT09IHRydWUpIHsKICAkRVJST1IoJyMyOiAhKGZhbHNlKSA9PT0gdHJ1ZS4gQWN0dWFsOiAnICsgKCEoZmFsc2UpKSk7Cn0KCg==",
"commentary":"Result of boolean conversion from boolean value is no conversion",
"description":"true and false convert to Boolean by implicit transformation",
"path":"TestCases/ch09/9.2/S9.2_A3_T2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgYm9vbGVhbiBjb252ZXJzaW9uIGZyb20gbnVtYmVyIHZhbHVlIGlzIGZhbHNlIGlmIHRoZSBhcmd1bWVudCBpcyArMCwgLTAsIG9yIE5hTjsgb3RoZXJ3aXNlLCBpcyB0cnVlCiAqCiAqIEBwYXRoIGNoMDkvOS4yL1M5LjJfQTRfVDEuanMKICogQGRlc2NyaXB0aW9uICswLCAtMCBhbmQgTmFOIGNvbnZlcnQgdG8gQm9vbGVhbiBieSBleHBsaWNpdCB0cmFuc2Zvcm1hdGlvbgogKi8KCi8vIENIRUNLIzEKaWYgKEJvb2xlYW4oKzApICE9PSBmYWxzZSkgewogICRFUlJPUignIzE6IEJvb2xlYW4oKzApID09PSBmYWxzZS4gQWN0dWFsOiAnICsgKEJvb2xlYW4oKzApKSk7IAkgCn0KCi8vIENIRUNLIzIKaWYgKEJvb2xlYW4oLTApICE9PSBmYWxzZSkgewogICRFUlJPUignIzI6IEJvb2xlYW4oLTApID09PSBmYWxzZS4gQWN0dWFsOiAnICsgKEJvb2xlYW4oLTApKSk7Cn0KCi8vIENIRUNLIzMKaWYgKEJvb2xlYW4oTnVtYmVyLk5hTikgIT09IGZhbHNlKSB7CiAgJEVSUk9SKCcjMzogQm9vbGVhbihOdW1iZXIuTmFOKSA9PT0gZmFsc2UuIEFjdHVhbDogJyArIChCb29sZWFuKE51bWJlci5OYU4pKSk7Cn0KCg==",
"commentary":"Result of boolean conversion from number value is false if the argument is +0, -0, or NaN; otherwise, is true",
"description":"+0, -0 and NaN convert to Boolean by explicit transformation",
"path":"TestCases/ch09/9.2/S9.2_A4_T1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgYm9vbGVhbiBjb252ZXJzaW9uIGZyb20gbnVtYmVyIHZhbHVlIGlzIGZhbHNlIGlmIHRoZSBhcmd1bWVudCBpcyArMCwgLTAsIG9yIE5hTjsgb3RoZXJ3aXNlLCBpcyB0cnVlCiAqCiAqIEBwYXRoIGNoMDkvOS4yL1M5LjJfQTRfVDIuanMKICogQGRlc2NyaXB0aW9uICswLCAtMCBhbmQgTmFOIGNvbnZlcnQgdG8gQm9vbGVhbiBieSBpbXBsaWNpdCB0cmFuc2Zvcm1hdGlvbgogKi8KCi8vIENIRUNLIzEKaWYgKCEoKzApICE9PSB0cnVlKSB7CiAgJEVSUk9SKCcjMTogISgrMCkgPT09IHRydWUuIEFjdHVhbDogJyArICghKCswKSkpOyAJIAp9CgovLyBDSEVDSyMyCmlmICghKC0wKSAhPT0gdHJ1ZSkgewogICRFUlJPUignIzI6ICEoLTApID09PSB0cnVlLiBBY3R1YWw6ICcgKyAoISgtMCkpKTsKfQoKLy8gQ0hFQ0sjMwppZiAoIShOdW1iZXIuTmFOKSAhPT0gdHJ1ZSkgewogICRFUlJPUignIzM6ICEoTnVtYmVyLk5hTikgPT09IHRydWUuIEFjdHVhbDogJyArICghKE51bWJlci5OYU4pKSk7Cn0KCg==",
"commentary":"Result of boolean conversion from number value is false if the argument is +0, -0, or NaN; otherwise, is true",
"description":"+0, -0 and NaN convert to Boolean by implicit transformation",
"path":"TestCases/ch09/9.2/S9.2_A4_T2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgYm9vbGVhbiBjb252ZXJzaW9uIGZyb20gbnVtYmVyIHZhbHVlIGlzIGZhbHNlIGlmIHRoZSBhcmd1bWVudCBpcyArMCwgLTAsIG9yIE5hTjsgb3RoZXJ3aXNlLCBpcyB0cnVlCiAqCiAqIEBwYXRoIGNoMDkvOS4yL1M5LjJfQTRfVDMuanMKICogQGRlc2NyaXB0aW9uIE51bWJlci5QT1NJVElWRV9JTkZJTklUWSwgTnVtYmVyLk5FR0FUSVZFX0lORklOSVRZLAogKiBOdW1iZXIuTUFYX1ZBTFVFLCBOdW1iZXIuTUlOX1ZBTFVFIGFuZCBzb21lIG51bWJlcnMgY29udmVydCB0byBCb29sZWFuIGJ5IGV4cGxpY2l0IHRyYW5zZm9ybW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TMpKSk7CQp9CgovLyBDSEVDSyM3CmlmIChCb29sZWFuKDEuMykgIT09IHRydWUpIHsKICAkRVJST1IoJyM3OiBCb29sZWFuKDEuMykgPT09IHRydWUuIEFjdHVhbDogJyArIChCb29sZWFuKDEuMykpKTsJCn0KCi8vIENIRUNLIzgKaWYgKEJvb2xlYW4oLTEuMykgIT09IHRydWUpIHsKICAkRVJST1IoJyM4OiBCb29sZWFuKC0xLjMpID09PSB0cnVlLiBBY3R1YWw6ICcgKyAoQm9vbGVhbigtMS4zKSkpOwkKfQkKCg==",
"commentary":"Result of boolean conversion from number value is false if the argument is +0, -0, or NaN; otherwise, is true",
"description":"Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY,\nNumber.MAX_VALUE, Number.MIN_VALUE and some numbers convert to Boolean by explicit transformation",
"path":"TestCases/ch09/9.2/S9.2_A4_T3.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgYm9vbGVhbiBjb252ZXJzaW9uIGZyb20gbnVtYmVyIHZhbHVlIGlzIGZhbHNlIGlmIHRoZSBhcmd1bWVudCBpcyArMCwgLTAsIG9yIE5hTjsgb3RoZXJ3aXNlLCBpcyB0cnVlCiAqCiAqIEBwYXRoIGNoMDkvOS4yL1M5LjJfQTRfVDQuanMKICogQGRlc2NyaXB0aW9uIE51bWJlci5QT1NJVElWRV9JTkZJTklUWSwgTnVtYmVyLk5FR0FUSVZFX0lORklOSVRZLAogKiBOdW1iZXIuTUFYX1ZBTFVFLCBOdW1iZXIuTUlOX1ZBTFVFIGFuZCBzb21lIG90aGVyIG51bWJlcnMgYXJlIGNvbnZlcnRlZCB0byBCb29sZWFuIGJ5IGltcGxpY2l0IHRyYW5zZm9ybWF0aW9uCiAqLwoKLy8gQ0hFQ0sjMQppZiAoIShOdW1iZXIuUE9TSVRJVkVfSU5GSU5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SBmYWxzZS4gQWN0dWFsOiAnICsgKCEoLTEuMykpKTsJCn0JCgo=",
"commentary":"Result of boolean conversion from number value is false if the argument is +0, -0, or NaN; otherwise, is true",
"description":"Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY,\nNumber.MAX_VALUE, Number.MIN_VALUE and some other numbers are converted to Boolean by implicit transformation",
"path":"TestCases/ch09/9.2/S9.2_A4_T4.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgYm9vbGVhbiBjb252ZXJzaW9uIGZyb20gbm9uZW1wdHkgc3RyaW5nIHZhbHVlIChsZW5ndGggaXMgbm90IHplcm8pIGlzIHRydWU7IGZyb20gZW1wdHkgU3RyaW5nIChsZW5ndGggaXMgemVybykgaXMgZmFsc2UKICoKICogQHBhdGggY2gwOS85LjIvUzkuMl9BNV9UMS5qcwogKiBAZGVzY3JpcHRpb24gIiIgaXMgY29udmVydGVkIHRvIEJvb2xlYW4gYnkgZXhwbGljaXQgdHJhbnNmb3JtYXRpb24KICovCgovLyBDSEVDSyMxCmlmIChCb29sZWFuKCIiKSAhPT0gZmFsc2UpIHsKICAkRVJST1IoJyMxOiBCb29sZWFuKCIiKSA9PT0gZmFsc2UuIEFjdHVhbDogJyArIChCb29sZWFuKCIiKSkpOwp9Cgo=",
"commentary":"Result of boolean conversion from nonempty string value (length is not zero) is true; from empty String (length is zero) is false",
"description":"\"\" is converted to Boolean by explicit transformation",
"path":"TestCases/ch09/9.2/S9.2_A5_T1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgYm9vbGVhbiBjb252ZXJzaW9uIGZyb20gbm9uZW1wdHkgc3RyaW5nIHZhbHVlIChsZW5ndGggaXMgbm90IHplcm8pIGlzIHRydWU7IGZyb20gZW1wdHkgU3RyaW5nIChsZW5ndGggaXMgemVybykgaXMgZmFsc2UKICoKICogQHBhdGggY2gwOS85LjIvUzkuMl9BNV9UMi5qcwogKiBAZGVzY3JpcHRpb24gIiIgY29udmVydCB0byBCb29sZWFuIGJ5IGltcGxpY2l0IHRyYW5zZm9ybWF0aW9uCiAqLwoKLy8gQ0hFQ0sjMQppZiAoISgiIikgIT09IHRydWUpIHsKICAkRVJST1IoJyMxOiAhKCIiKSA9PT0gdHJ1ZS4gQWN0dWFsOiAnICsgKCEoIiIpKSk7Cn0KCg==",
"commentary":"Result of boolean conversion from nonempty string value (length is not zero) is true; from empty String (length is zero) is false",
"description":"\"\" convert to Boolean by implicit transformation",
"path":"TestCases/ch09/9.2/S9.2_A5_T2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgYm9vbGVhbiBjb252ZXJzaW9uIGZyb20gbm9uZW1wdHkgc3RyaW5nIHZhbHVlIChsZW5ndGggaXMgbm90IHplcm8pIGlzIHRydWU7IGZyb20gZW1wdHkgU3RyaW5nIChsZW5ndGggaXMgemVybykgaXMgZmFsc2UKICoKICogQHBhdGggY2gwOS85LjIvUzkuMl9BNV9UMy5qcwogKiBAZGVzY3JpcHRpb24gQW55IG5vbmVtcHR5IHN0cmluZyBjb252ZXJ0IHRvIEJvb2xlYW4gYnkgZXhwbGljaXQgdHJhbnNmb3JtYXRpb24KICovCgovLyBDSEVDSyMxCmlmIChCb29sZWFuKCIgIikgIT09IHRydWUpIHsKICAkRVJST1IoJyMxOiBCb29sZWFuKCIgIikgPT09IHRydWUuIEFjdHVhbDogJyArIChCb29sZWFuKCIgIikpKTsJCn0KCi8vIENIRUNLIzIKaWYgKEJvb2xlYW4oIk5vbmVtcHR5IFN0cmluZyIpICE9PSB0cnVlKSB7CiAgJEVSUk9SKCcjMjogQm9vbGVhbigiTm9uZW1wdHkgU3RyaW5nIikgPT09IHRydWUuIEFjdHVhbDogJyArIChCb29sZWFuKCJOb25lbXB0eSBTdHJpbmciKSkpOwkKfQoK",
"commentary":"Result of boolean conversion from nonempty string value (length is not zero) is true; from empty String (length is zero) is false",
"description":"Any nonempty string convert to Boolean by explicit transformation",
"path":"TestCases/ch09/9.2/S9.2_A5_T3.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgYm9vbGVhbiBjb252ZXJzaW9uIGZyb20gbm9uZW1wdHkgc3RyaW5nIHZhbHVlIChsZW5ndGggaXMgbm90IHplcm8pIGlzIHRydWU7IGZyb20gZW1wdHkgU3RyaW5nIChsZW5ndGggaXMgemVybykgaXMgZmFsc2UKICoKICogQHBhdGggY2gwOS85LjIvUzkuMl9BNV9UNC5qcwogKiBAZGVzY3JpcHRpb24gQW55IG5vbmVtcHR5IHN0cmluZyBjb252ZXJ0IHRvIEJvb2xlYW4gYnkgaW1wbGljaXQgdHJhbnNmb3JtYXRpb24KICovCgovLyBDSEVDSyMxCmlmICghKCIgIikgIT09IGZhbHNlKSB7CiAgJEVSUk9SKCcjMTogISgiICIpID09PSBmYWxzZS4gQWN0dWFsOiAnICsgKCEoIiAiKSkpOwkKfQoKLy8gQ0hFQ0sjMgppZiAoISgiTm9uZW1wdHkgU3RyaW5nIikgIT09IGZhbHNlKSB7CiAgJEVSUk9SKCcjMjogISgiTm9uZW1wdHkgU3RyaW5nIikgPT09IGZhbHNlLiBBY3R1YWw6ICcgKyAoISgiTm9uZW1wdHkgU3RyaW5nIikpKTsJCn0KCg==",
"commentary":"Result of boolean conversion from nonempty string value (length is not zero) is true; from empty String (length is zero) is false",
"description":"Any nonempty string convert to Boolean by implicit transformation",
"path":"TestCases/ch09/9.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cihOdW1iZXIuUE9TSVRJVkVfSU5GSU5JVFkpKSkpOwkKfQoKLy8gQ0hFQ0sjMTYKaWYgKEJvb2xlYW4obmV3IE51bWJlcihOdW1iZXIuTkVHQVRJVkVfSU5GSU5JVFkpKSAhPT0gdHJ1ZSkgewogICRFUlJPUignIzE2OiBCb29sZWFuKG5ldyBOdW1iZXIoTnVtYmVyLk5FR0FUSVZFX0lORklOSVRZKSkgPT09IHRydWUuIEFjdHVhbDogJyArIChCb29sZWFuKG5ldyBOdW1iZXIoTnVtYmVyLk5FR0FUSVZFX0lORklOSVRZKSkpKTsJCn0KCi8vIENIRUNLIzE3CmlmIChCb29sZWFuKG5ldyBGdW5jdGlvbigpKSAhPT0gdHJ1ZSkgewogICRFUlJPUignIzE3OiBCb29sZWFuKG5ldyBGdW5jdGlvbigpKSA9PT0gdHJ1ZS4gQWN0dWFsOiAnICsgKEJvb2xlYW4obmV3IEZ1bmN0aW9uKCkpKSk7CQp9CgovLyBDSEVDSyMxOAppZiAoQm9vbGVhbihuZXcgRGF0ZSgpKSAhPT0gdHJ1ZSkgewogICRFUlJPUignIzE4OiBCb29sZWFuKG5ldyBEYXRlKCkpID09PSB0cnVlLiBBY3R1YWw6ICcgKyAoQm9vbGVhbihuZXcgRGF0ZSgpKSkpOwkKfQoKLy8gQ0hFQ0sjMTkKaWYgKEJvb2xlYW4obmV3IERhdGUoMCkpICE9PSB0cnVlKSB7CiAgJEVSUk9SKCcjMTk6IEJvb2xlYW4obmV3IERhdGUoMCkpID09PSB0cnVlLiBBY3R1YWw6ICcgKyAoQm9vbGVhbihuZXcgRGF0ZSgwKSkpKTsJCn0KCg==",
"commentary":"Result of boolean conversion from object is true",
"description":"Different objects convert to Boolean by explicit transformation",
"path":"TestCases/ch09/9.2/S9.2_A6_T1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBS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ldyBGdW5jdGlvbigpKSkpOwkKfQoKLy8gQ0hFQ0sjMTgKaWYgKCEobmV3IERhdGUoKSkgIT09IGZhbHNlKSB7CiAgJEVSUk9SKCcjMTg6ICEobmV3IERhdGUoKSkgPT09IGZhbHNlLiBBY3R1YWw6ICcgKyAoIShuZXcgRGF0ZSgpKSkpOwkKfQoKLy8gQ0hFQ0sjMTkKaWYgKCEobmV3IERhdGUoMCkpICE9PSBmYWxzZSkgewogICRFUlJPUignIzE5OiAhKG5ldyBEYXRlKDApKSA9PT0gZmFsc2UuIEFjdHVhbDogJyArICghKG5ldyBEYXRlKDApKSkpOwkKfQoK",
"commentary":"Result of boolean conversion from object is true",
"description":"Different objects convert to Boolean by implicit transformation",
"path":"TestCases/ch09/9.2/S9.2_A6_T2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgbnVtYmVyIGNvbnZlcnNpb24gZnJvbSB1bmRlZmluZWQgdmFsdWUgaXMgTmFOCiAqCiAqIEBwYXRoIGNoMDkvOS4zL1M5LjNfQTFfVDEuanMKICogQGRlc2NyaXB0aW9uIFVuZGVmaW5lZCBjb252ZXJ0IHRvIE51bWJlciBieSBleHBsaWNpdCB0cmFuc2Zvcm1hdGlvbgogKi8KCi8vIENIRUNLIzEKaWYgKGlzTmFOKE51bWJlcih1bmRlZmluZWQpKSAhPT0gdHJ1ZSkgewogICRFUlJPUignIzE6IE51bWJlcih1bmRlZmluZWQpID09PSBOb3QtYS1OdW1iZXIuIEFjdHVhbDogJyArIChOdW1iZXIodW5kZWZpbmVkKSkpOwp9CgovLyBDSEVDSyMyCmlmIChpc05hTihOdW1iZXIodm9pZCAwKSkgIT09IHRydWUpIHsKICAkRVJST1IoJyMyOiBOdW1iZXIodm9pZCAwKSA9PT0gTm90LWEtTnVtYmVyLiBBY3R1YWw6ICcgKyAoTnVtYmVyKHZvaWQgMCkpKTsKfQoKLy8gQ0hFQ0sjMwppZiAoaXNOYU4oTnVtYmVyKGV2YWwoInZhciB4IikpKSAhPT0gdHJ1ZSkgewogICRFUlJPUignIzM6IE51bWJlcihldmFsKCJ2YXIgeCIpKSA9PT0gTm90LWEtTnVtYmVyLiBBY3R1YWw6ICcgKyAoTnVtYmVyKGV2YWwoInZhciB4IikpKSk7Cn0KCg==",
"commentary":"Result of number conversion from undefined value is NaN",
"description":"Undefined convert to Number by explicit transformation",
"path":"TestCases/ch09/9.3/S9.3_A1_T1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgbnVtYmVyIGNvbnZlcnNpb24gZnJvbSB1bmRlZmluZWQgdmFsdWUgaXMgTmFOCiAqCiAqIEBwYXRoIGNoMDkvOS4zL1M5LjNfQTFfVDIuanMKICogQGRlc2NyaXB0aW9uIFVuZGVmaW5lZCBjb252ZXJ0IHRvIE51bWJlciBieSBpbXBsaWNpdCB0cmFuc2Zvcm1hdGlvbgogKi8KCi8vIENIRUNLIzEKaWYgKGlzTmFOKCsodW5kZWZpbmVkKSkgIT09IHRydWUpIHsKICAkRVJST1IoJyMxOiArKHVuZGVmaW5lZCkgPT09IE5vdC1hLU51bWJlci4gQWN0dWFsOiAnICsgKCsodW5kZWZpbmVkKSkpOwp9CgovLyBDSEVDSyMyCmlmIChpc05hTigrKHZvaWQgMCkpICE9PSB0cnVlKSB7CiAgJEVSUk9SKCcjMjogKyh2b2lkIDApID09PSBOb3QtYS1OdW1iZXIuIEFjdHVhbDogJyArICgrKHZvaWQgMCkpKTsKfQoKLy8gQ0hFQ0sjMwppZiAoaXNOYU4oKyhldmFsKCJ2YXIgeCIpKSkgIT09IHRydWUpIHsKICAkRVJST1IoJyMzOiArKGV2YWwoInZhciB4IikpID09PSBOb3QtYS1OdW1iZXIuIEFjdHVhbDogJyArICgrKGV2YWwoInZhciB4IikpKSk7Cn0KCg==",
"commentary":"Result of number conversion from undefined value is NaN",
"description":"Undefined convert to Number by implicit transformation",
"path":"TestCases/ch09/9.3/S9.3_A1_T2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgbnVtYmVyIGNvbnZlcnNpb24gZnJvbSBudWxsIHZhbHVlIGlzICswCiAqCiAqIEBwYXRoIGNoMDkvOS4zL1M5LjNfQTJfVDEuanMKICogQGRlc2NyaXB0aW9uIG51bGwgY29udmVydCB0byBOdW1iZXIgYnkgZXhwbGljaXQgdHJhbnNmb3JtYXRpb24KICovCgovLyBDSEVDSyAjMQppZiAoTnVtYmVyKG51bGwpICE9PSAwKSB7CiAgJEVSUk9SKCcjMS4xOiBOdW1iZXIobnVsbCkgPT09IDAuIEFjdHVhbDogJyArIChOdW1iZXIobnVsbCkpKTsgCn0gZWxzZSB7CiAgaWYgKDEvTnVtYmVyKG51bGwpICE9PSBOdW1iZXIuUE9TSVRJVkVfSU5GSU5JVFkpIHsKICAgICRFUlJPUignIzEuMjogTnVtYmVyKG51bGwpID09PSArMC4gQWN0dWFsOiAtMCcpOwogIH0JCn0KCg==",
"commentary":"Result of number conversion from null value is +0",
"description":"null convert to Number by explicit transformation",
"path":"TestCases/ch09/9.3/S9.3_A2_T1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgbnVtYmVyIGNvbnZlcnNpb24gZnJvbSBudWxsIHZhbHVlIGlzICswCiAqCiAqIEBwYXRoIGNoMDkvOS4zL1M5LjNfQTJfVDIuanMKICogQGRlc2NyaXB0aW9uIG51bGwgY29udmVydCB0byBOdW1iZXIgYnkgaW1wbGljaXQgdHJhbnNmb3JtYXRpb24KICovCgovLyBDSEVDSyAjMQppZiAoKyhudWxsKSAhPT0gMCkgewogICRFUlJPUignIzEuMTogKyhudWxsKSA9PT0gMC4gQWN0dWFsOiAnICsgKCsobnVsbCkpKTsgCn0gZWxzZSB7CiAgaWYgKDEvKyhudWxsKSAhPT0gTnVtYmVyLlBPU0lUSVZFX0lORklOSVRZKSB7CiAgICAkRVJST1IoJyMxLjI6ICsobnVsbCkgPT09ICswLiBBY3R1YWw6IC0wJyk7CiAgfQkKfQoK",
"commentary":"Result of number conversion from null value is +0",
"description":"null convert to Number by implicit transformation",
"path":"TestCases/ch09/9.3/S9.3_A2_T2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgbnVtYmVyIGNvbnZlcnNpb24gZnJvbSBib29sZWFuIHZhbHVlIGlzIDEgaWYgdGhlIGFyZ3VtZW50IGlzIHRydWUsIGVsc2UgaXMgKzAKICoKICogQHBhdGggY2gwOS85LjMvUzkuM19BM19UMS5qcwogKiBAZGVzY3JpcHRpb24gRmFsc2UgYW5kIHRydWUgY29udmVydCB0byBOdW1iZXIgYnkgZXhwbGljaXQgdHJhbnNmb3JtYXRpb24KICovCgovLyBDSEVDSyMxCmlmIChOdW1iZXIoZmFsc2UpICE9PSArMCkgewogICRFUlJPUignIzEuMTogTnVtYmVyKGZhbHNlKSA9PT0gMC4gQWN0dWFsOiAnICsgKE51bWJlcihmYWxzZSkpKTsKfSBlbHNlIHsKICBpZiAoMS9OdW1iZXIoZmFsc2UpICE9PSBOdW1iZXIuUE9TSVRJVkVfSU5GSU5JVFkpIHsKICAgICRFUlJPUignIzEuMjogTnVtYmVyKGZhbHNlKSA9PT0gKzAuIEFjdHVhbDogLTAnKTsKICB9Cn0KCi8vIENIRUNLIzIKaWYgKE51bWJlcih0cnVlKSAhPT0gMSkgewogICRFUlJPUignIzI6IE51bWJlcih0cnVlKSA9PT0gMS4gQWN0dWFsOiAnICsgKE51bWJlcih0cnVlKSkpOwkKfQoK",
"commentary":"Result of number conversion from boolean value is 1 if the argument is true, else is +0",
"description":"False and true convert to Number by explicit transformation",
"path":"TestCases/ch09/9.3/S9.3_A3_T1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgbnVtYmVyIGNvbnZlcnNpb24gZnJvbSBib29sZWFuIHZhbHVlIGlzIDEgaWYgdGhlIGFyZ3VtZW50IGlzIHRydWUsIGVsc2UgaXMgKzAKICoKICogQHBhdGggY2gwOS85LjMvUzkuM19BM19UMi5qcwogKiBAZGVzY3JpcHRpb24gRmFsc2UgYW5kIHRydWUgY29udmVydCB0byBOdW1iZXIgYnkgaW1wbGljaXQgdHJhbnNmb3JtYXRpb24KICovCgovLyBDSEVDSyMxCmlmICgrKGZhbHNlKSAhPT0gKzApIHsKICAkRVJST1IoJyMxLjE6ICsoZmFsc2UpID09PSAwLiBBY3R1YWw6ICcgKyAoKyhmYWxzZSkpKTsKfSBlbHNlIHsKICBpZiAoMS8rKGZhbHNlKSAhPT0gTnVtYmVyLlBPU0lUSVZFX0lORklOSVRZKSB7CiAgICAkRVJST1IoJyMxLjI6ICsoZmFsc2UpID09PSArMC4gQWN0dWFsOiAtMCcpOwogIH0KfQoKLy8gQ0hFQ0sjMgppZiAoKyh0cnVlKSAhPT0gMSkgewogICRFUlJPUignIzI6ICsodHJ1ZSkgPT09IDEuIEFjdHVhbDogJyArICgrKHRydWUpKSk7CQp9Cgo=",
"commentary":"Result of number conversion from boolean value is 1 if the argument is true, else is +0",
"description":"False and true convert to Number by implicit transformation",
"path":"TestCases/ch09/9.3/S9.3_A3_T2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0I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ICRFUlJPUignIzU6IE51bWJlcihOdW1iZXIuTUFYX1ZBTFVFKSA9PT0gMS43OTc2OTMxMzQ4NjIzMTU3ZTMwOC4gQWN0dWFsOiAnICsgKE51bWJlcihOdW1iZXIuTUFYX1ZBTFVFKSkpOwp9CgovLyBDSEVDSyM2CmlmIChOdW1iZXIoTnVtYmVyLk1JTl9WQUxVRSkgIT09IDVlLTMyNCkgewogICRFUlJPUignIzY6IE51bWJlcihOdW1iZXIuTUlOX1ZBTFVFKSA9PT0gNWUtMzI0LiBBY3R1YWw6ICcgKyAoTnVtYmVyKE51bWJlci5NSU5fVkFMVUUpKSk7Cn0JCgo=",
"commentary":"Result of number conversion from number value equals to the input argument (no conversion)",
"description":"Some numbers including Number.MAX_VALUE and Number.MIN_VALUE are converted to Number with explicit transformation",
"path":"TestCases/ch09/9.3/S9.3_A4.1_T1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgbnVtYmVyIGNvbnZlcnNpb24gZnJvbSBudW1iZXIgdmFsdWUgZXF1YWxzIHRvIHRoZSBpbnB1dCBhcmd1bWVudCAobm8gY29udmVyc2lvbikKICoKICogQHBhdGggY2gwOS85LjMvUzkuM19BNC4xX1QyLmpzCiAqIEBkZXNjcmlwdGlvbiBTb21lIG51bWJlcnMgaW5jbHVkaW5nIE51bWJlci5NQVhfVkFMVUUgYW5kIE51bWJlci5NSU5fVkFMVUUgYXJlIGNvbnZlcnRlZCB0byBOdW1iZXIgd2l0aCBpbXBsaWNpdCB0cmFuc2Zvcm1hdGlvbgogKi8KCi8vIENIRUNLIzEKaWYgKCsoMTMpICE9PSAxMykgewogICRFUlJPUignIzE6ICsoMTMpID09PSAxMy4gQWN0dWFsOiAnICsgKCsoMTMpKSk7Cn0KCi8vIENIRUNLIzIKaWYgKCsoLTEzKSAhPT0gLTEzKSB7IAogICRFUlJPUignIzI6ICsoLTEzKSA9PT0gLTEzLiBBY3R1YWw6ICcgKyAoKygtMTMpKSk7Cn0KCi8vIENIRUNLIzMKaWYgKCsoMS4zKSAhPT0gMS4zKSB7CiAgJEVSUk9SKCcjMzogKygxLjMpID09PSAxLjMuIEFjdHVhbDogJyArICgrKDEuMykpKTsKfQoKLy8gQ0hFQ0sjNAppZiAoKygtMS4zKSAhPT0gLTEuMykgewogICRFUlJPUignIzQ6ICsoLTEuMykgPT09IC0xLjMuIEFjdHVhbDogJyArICgrKC0xLjMpKSk7Cn0KCi8vIENIRUNLIzUKaWYgKCsoTnVtYmVyLk1BWF9WQUxVRSkgIT09IDEuNzk3NjkzMTM0ODYyMzE1N2UzMDgpIHsKICAkRVJST1IoJyM1OiArKE51bWJlci5NQVhfVkFMVUUpID09PSAxLjc5NzY5MzEzNDg2MjMxNTdlMzA4LiBBY3R1YWw6ICcgKyAoKyhOdW1iZXIuTUFYX1ZBTFVFKSkpOwp9CgovLyBDSEVDSyM2CmlmICgrKE51bWJlci5NSU5fVkFMVUUpICE9PSA1ZS0zMjQpIHsKICAkRVJST1IoJyM2OiArKE51bWJlci5NSU5fVkFMVUUpID09PSA1ZS0zMjQuIEFjdHVhbDogJyArICgrKE51bWJlci5NSU5fVkFMVUUpKSk7Cn0JCgo=",
"commentary":"Result of number conversion from number value equals to the input argument (no conversion)",
"description":"Some numbers including Number.MAX_VALUE and Number.MIN_VALUE are converted to Number with implicit transformation",
"path":"TestCases/ch09/9.3/S9.3_A4.1_T2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgbnVtYmVyIGNvbnZlcnNpb24gZnJvbSBudW1iZXIgdmFsdWUgZXF1YWxzIHRvIHRoZSBpbnB1dCBhcmd1bWVudCAobm8gY29udmVyc2lvbikKICoKICogQHBhdGggY2gwOS85Lj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lBPU0lUSVZFX0lORklOSVRZKSB7CiAgJEVSUk9SKCcjNDogTnVtYmVyKCtJbmZpbml0eSkgPT09ICtJbmZpbml0eS4gQWN0dWFsOiAnICsgKE51bWJlcigrSW5maW5pdHkpKSk7IAp9CgovLyBDSEVDSyM1CmlmIChOdW1iZXIoTnVtYmVyLk5FR0FUSVZFX0lORklOSVRZKSAhPT0gTnVtYmVyLk5FR0FUSVZFX0lORklOSVRZKSB7CiAgJEVSUk9SKCcjNTogTnVtYmVyKC1JbmZpbml0eSkgPT09IC1JbmZpbml0eS4gQWN0dWFsOiAnICsgKE51bWJlcigtSW5maW5pdHkpKSk7IAp9CgovLyBDSEVDSyM2CmlmIChOdW1iZXIoTnVtYmVyLk1BWF9WQUxVRSkgIT09IE51bWJlci5NQVhfVkFMVUUpIHsKICAkRVJST1IoJyM2OiBOdW1iZXIoTnVtYmVyLk1BWF9WQUxVRSkgPT09IE51bWJlci5NQVhfVkFMVUUuIEFjdHVhbDogJyArIChOdW1iZXIoTnVtYmVyLk1BWF9WQUxVRSkpKTsgCn0KCi8vIENIRUNLIzcKaWYgKE51bWJlcihOdW1iZXIuTUlOX1ZBTFVFKSAhPT0gTnVtYmVyLk1JTl9WQUxVRSkgewogICRFUlJPUignIzc6IE51bWJlcihOdW1iZXIuTUlOX1ZBTFVFKSA9PT0gTnVtYmVyLk1JTl9WQUxVRS4gQWN0dWFsOiAnICsgKE51bWJlcihOdW1iZXIuTUlOX1ZBTFVFKSkpOyAKfQoK",
"commentary":"Result of number conversion from number value equals to the input argument (no conversion)",
"description":"Number.NaN, +0, -0, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY,\nNumber.MAX_VALUE and Number.MIN_VALUE convert to Number by explicit transformation",
"path":"TestCases/ch09/9.3/S9.3_A4.2_T1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBS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iAoKyhOdW1iZXIuUE9TSVRJVkVfSU5GSU5JVFkpICE9PSBOdW1iZXIuUE9TSVRJVkVfSU5GSU5JVFkpIHsKICAkRVJST1IoJyM0OiArKCtJbmZpbml0eSkgPT09ICtJbmZpbml0eS4gQWN0dWFsOiAnICsgKCsoK0luZmluaXR5KSkpOyAKfQoKLy8gQ0hFQ0sjNQppZiAoKyhOdW1iZXIuTkVHQVRJVkVfSU5GSU5JVFkpICE9PSBOdW1iZXIuTkVHQVRJVkVfSU5GSU5JVFkpIHsKICAkRVJST1IoJyM1OiArKC1JbmZpbml0eSkgPT09IC1JbmZpbml0eS4gQWN0dWFsOiAnICsgKCsoLUluZmluaXR5KSkpOyAKfQoKLy8gQ0hFQ0sjNgppZiAoKyhOdW1iZXIuTUFYX1ZBTFVFKSAhPT0gTnVtYmVyLk1BWF9WQUxVRSkgewogICRFUlJPUignIzY6ICsoTnVtYmVyLk1BWF9WQUxVRSkgPT09IE51bWJlci5NQVhfVkFMVUUuIEFjdHVhbDogJyArICgrKE51bWJlci5NQVhfVkFMVUUpKSk7IAp9CgovLyBDSEVDSyM3CmlmICgrKE51bWJlci5NSU5fVkFMVUUpICE9PSBOdW1iZXIuTUlOX1ZBTFVFKSB7CiAgJEVSUk9SKCcjNzogKyhOdW1iZXIuTUlOX1ZBTFVFKSA9PT0gTnVtYmVyLk1JTl9WQUxVRS4gQWN0dWFsOiAnICsgKCsoTnVtYmVyLk1JTl9WQUxVRSkpKTsgCn0KCg==",
"commentary":"Result of number conversion from number value equals to the input argument (no conversion)",
"description":"Number.NaN, +0, -0, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY,\nNumber.MAX_VALUE and Number.MIN_VALUE convert to Number by implicit transformation",
"path":"TestCases/ch09/9.3/S9.3_A4.2_T2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1b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iAgICAgICAgICAgICAgICBUb051bWJlciA6IGZ1bmN0aW9uKCl7cmV0dXJuIDEyMzQ1O30sIAogICAgICAgICAgICAgICAgdG9TdHJpbmcgOiBmdW5jdGlvbigpe3JldHVybiAiNjc4OTAiO30gCiAgICAgICAgICAgIH07CgppZiAoTnVtYmVyKG15b2JqNCkgIT09IDY3ODkwKXsKICAkRVJST1IoIiMxNDogTnVtYmVyKG15b2JqNCkgY2FsbHMgVG9QcmltaXRpdmUgd2l0aCBoaW50IE51bWJlci4gRXhwdGVjdGVkOiA2Nzg5MC4gIEFjdHVhbDogIiArIChOdW1iZXIobXlvYmo0KSkpOwp9CgovLyBDSEVDSyMxNQp2YXIgbXlvYmo1ID0gewogICAgICAgICAgICAgICAgVG9OdW1iZXIgOiBmdW5jdGlvbigpe3JldHVybiAxMjM0NTt9IAogICAgICAgICAgICB9OwoKaWYgKGlzTmFOKE51bWJlcihteW9iajUpKSAhPT0gdHJ1ZSl7CiAgJEVSUk9SKCIjMTU6IE51bWJlcihteW9iajUpIGNhbGxzIFRvUHJpbWl0aXZlIHdpdGggaGludCBOdW1iZXIuIEV4cHRlY3RlZDogTm90LWEtTnVtYmVyLiAgQWN0dWFsOiAiICsgKE51bWJlcihteW9iajUpKSk7Cn0KCg==",
"commentary":"Result of number conversion from object value is the result\nof conversion from primitive value",
"description":"new Number(), new Number(0), new Number(Number.NaN), new Number(null),\nnew Number(void 0) and others convert to Number by explicit transformation",
"path":"TestCases/ch09/9.3/S9.3_A5_T1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgbnVtYmVyIGNvbnZlcnNpb24gZnJvbSBvYmplY3QgdmFsdWUgaXMgdGhlIHJlc3VsdAogKiBvZiBjb252ZXJzaW9uIGZyb20gcHJpbWl0aXZlIHZhbHVlCiAqCiAqIEBwYXRoIGNoMDkvO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0NTt9IAogICAgICAgICAgICB9OwoKaWYgKGlzTmFOKCsobXlvYmo1KSkgIT09IHRydWUpewogICRFUlJPUigiIzE1OiArKG15b2JqNSkgY2FsbHMgVG9QcmltaXRpdmUgd2l0aCBoaW50ICsuIEV4cHRlY3RlZDogMTIzNDUuIEFjdHVhbDogIiArICgrKG15b2JqNSkpKTsKfQoK",
"commentary":"Result of number conversion from object value is the result\nof conversion from primitive value",
"description":"new Number(), new Number(0), new Number(Number.NaN), new Number(null),\nnew Number(void 0) and others convert to Number by implicit transformation",
"path":"TestCases/ch09/9.3/S9.3_A5_T2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUaGUgTVYgb2YgU3RyaW5nTnVtZXJpY0xpdGVyYWwgOjo6IFtlbXB0eV0gaXMgMAogKgogKiBAcGF0aCBjaDA5LzkuMy85LjMuMS9TOS4zLjFfQTEuanMKICogQGRlc2NyaXB0aW9uIE51bWJlcignJykgY29udmVydCB0byBOdW1iZXIgYnkgZXhwbGljaXQgdHJhbnNmb3JtYXRpb24KICovCgovLyBDSEVDSyMxCmlmIChOdW1iZXIoIiIpICE9PSAwKSB7CiAgJEVSUk9SKCcjMS4xOiBOdW1iZXIoIiIpID09PSAwLiBBY3R1YWw6ICcgKyAoTnVtYmVyKCIiKSkpOwp9IGVsc2UgewogIGlmICgxL051bWJlcigiIikgIT09IE51bWJlci5QT1NJVElWRV9JTkZJTklUWSkgewogICAgJEVSUk9SKCcjMS4yOiBOdW1iZXIoIiIpID09ICswLiBBY3R1YWw6IC0wJyk7CiAgfQp9Cgo=",
"commentary":"The MV of StringNumericLiteral ::: [empty] is 0",
"description":"Number('') convert to Number by explicit transformation",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUaGUgTVYgb2YgU3RyVW5zaWduZWREZWNpbWFsTGl0ZXJhbDo6Oi4gRGVjaW1hbERpZ2l0cyBpcyB0aGUKICogTVYgb2YgRGVjaW1hbERpZ2l0cyB0aW1lcyAxMDxzdXA+PHNtYWxsPi1uPC9zbWFsbD48L3N1cD4sIHdoZXJlIG4gaXMgdGhlCiAqIG51bWJlciBvZiBjaGFyYWN0ZXJzIGluIERlY2ltYWxEaWdpdHMKICoKICogQHBhdGggY2gwOS85LjMvOS4zLjEvUzkuMy4xX0ExMC5qcwogKiBAZGVzY3JpcHRpb24gQ29tcGFyZSBOdW1iZXIoJy4xMjM0NScpIHdpdGggKygnMTIzNDUnKSoxZS01CiAqLwoKLy8gQ0hFQ0sjMQppZiAoTnVtYmVyKCIuMTIzNDUiKSAhPT0gKygiMTIzNDUiKSoxZS01KSB7CiAgJEVSUk9SKCcjMTogTnVtYmVyKCIuMTIzNDUiKSA9PT0gKygiMTIzNDUiKSoxZS01Jyk7Cn0KCg==",
"commentary":"The MV of StrUnsignedDecimalLiteral:::. DecimalDigits is the\nMV of DecimalDigits times 10<sup><small>-n</small></sup>, where n is the\nnumber of characters in DecimalDigits",
"description":"Compare Number('.12345') with +('12345')*1e-5",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A10.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUaGUgTVYgb2YgU3RyVW5zaWduZWREZWNpbWFsTGl0ZXJhbDo6Oi4gRGVjaW1hbERpZ2l0cyBFeHBvbmVudFBhcnQKICogaXMgdGhlIE1WIG9mIERlY2ltYWxEaWdpdHMgdGltZXMgMTA8c3VwPjxzbWFsbD5lLW48L3NtYWxsPjwvc3VwPiwgd2hlcmUgbiBpcwogKiB0aGUgbnVtYmVyIG9mIGNoYXJhY3RlcnMgaW4gRGVjaW1hbERpZ2l0cyBhbmQgZSBpcyB0aGUgTVYgb2YgRXhwb25lbnRQYXJ0CiAqCiAqIEBwYXRoIGNoMDkvOS4zLzkuMy4xL1M5LjMuMV9BMTEuanMKICogQGRlc2NyaXB0aW9uIENvbXBhcmUgTnVtYmVyKCcuMTIzNDVlNicpIHdpdGggKygnMTIzNDUnKSoxZTEsCiAqIGFuZCBOdW1iZXIoJy4xMjM0NWUtMycpICE9PSBOdW1iZXIoJzEyMzQ1JykqMWUtOAogKi8KCi8vIENIRUNLIzEKaWYgKE51bWJlcigiLjEyMzQ1ZTYiKSAhPT0gKygiMTIzNDUiKSoxZTEpICB7CiAgJEVSUk9SKCcjMTogTnVtYmVyKCIuMTIzNDVlNiIpID09PSArKCIxMjM0NSIpKjFlMScpOwp9CgovLyBDSEVDSyMyCmlmIChOdW1iZXIoIi4xMjM0NWUtMyIpICE9PSBOdW1iZXIoIjEyMzQ1IikqMWUtOCkgIHsKICAkRVJST1IoJyMyOiBOdW1iZXIoIi4xMjM0NWUtMyIpID09PSBOdW1iZXIoIjEyMzQ1IikqMWUtOCcpOwp9Cgo=",
"commentary":"The MV of StrUnsignedDecimalLiteral:::. DecimalDigits ExponentPart\nis the MV of DecimalDigits times 10<sup><small>e-n</small></sup>, where n is\nthe number of characters in DecimalDigits and e is the MV of ExponentPart",
"description":"Compare Number('.12345e6') with +('12345')*1e1,\nand Number('.12345e-3') !== Number('12345')*1e-8",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A11.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUaGUgTVYgb2YgU3RyVW5zaWduZWREZWNpbWFsTGl0ZXJhbDo6OiBEZWNpbWFsRGlnaXRzIEV4cG9uZW50UGFydAogKiBpcyB0aGUgTVYgb2YgRGVjaW1hbERpZ2l0cyB0aW1lcyAxMDxzdXA+PHNtYWxsPmU8L3NtYWxsPjwvc3VwPiwgd2hlcmUgZSBpcyB0aGUgTVYgb2YgRXhwb25lbnRQYXJ0CiAqCiAqIEBwYXRoIGNoMDkvOS4zLzkuMy4xL1M5LjMuMV9BMTIuanMKICogQGRlc2NyaXB0aW9uIENvbXBhcmUgTnVtYmVyKCcxMjM0NWU2Jykgd2l0aCArKCcxMjM0NScpKjFlMSwKICogYW5kIE51bWJlcignMTIzNDVlLTYnKSAhPT0gTnVtYmVyKCcxMjM0NScpKjFlLTYKICovCgovLyBDSEVDSyMxCmlmIChOdW1iZXIoIjEyMzQ1ZTYiKSAhPT0gKygiMTIzNDUiKSoxZTYpICB7CiAgJEVSUk9SKCcjMTogTnVtYmVyKCIxMjM0NWU2IikgPT09ICsoIjEyMzQ1IikqMWU2Jyk7Cn0KCi8vIENIRUNLIzIKaWYgKE51bWJlcigiMTIzNDVlLTYiKSAhPT0gTnVtYmVyKCIxMjM0NSIpKjFlLTYpICB7CiAgJEVSUk9SKCcjMjogTnVtYmVyKCIxMjM0NWUtNiIpID09PSBOdW1iZXIoIjEyMzQ1IikqMWUtNicpOwp9Cgo=",
"commentary":"The MV of StrUnsignedDecimalLiteral::: DecimalDigits ExponentPart\nis the MV of DecimalDigits times 10<sup><small>e</small></sup>, where e is the MV of ExponentPart",
"description":"Compare Number('12345e6') with +('12345')*1e1,\nand Number('12345e-6') !== Number('12345')*1e-6",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A12.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUaGUgTVYgb2YgRGVjaW1hbERpZ2l0cyA6OjogRGVjaW1hbERpZ2l0cyBEZWNpbWFsRGlnaXQgaXMKICogKHRoZSBNViBvZiBEZWNpbWFsRGlnaXRzIHRpbWVzIDEwKSBwbHVzIHRoZSBNViBvZiBEZWNpbWFsRGlnaXQKICoKICogQHBhdGggY2gwOS85LjMvOS4zLjEvUzkuMy4xX0ExMy5qcwogKiBAZGVzY3JpcHRpb24gQ29tcGFyZSAnMTInIHdpdGggTnVtYmVyKCIxIikqMTArTnVtYmVyKCIyIikgYW5kIGFuYWxvZ291cwogKi8KCi8vIENIRUNLIzEKaWYgKCsoIjEyIikgIT09IE51bWJlcigiMSIpKjEwK051bWJlcigiMiIpKSAgewogICRFUlJPUignIzE6ICsoIjEyIikgPT09IE51bWJlcigiMSIpKjEwK051bWJlcigiMiIpJyk7Cn0KCi8vIENIRUNLIzIKaWYgKE51bWJlcigiMTIzIikgIT09IE51bWJlcigiMTIiKSoxMCtOdW1iZXIoIjMiKSkgIHsKICAkRVJST1IoJyMyOiBOdW1iZXIoIjEyMyIpID09PSBOdW1iZXIoIjEyIikqMTArTnVtYmVyKCIzIiknKTsKfQoKLy8gQ0hFQ0sjMgppZiAoTnVtYmVyKCIxMjM0IikgIT09IE51bWJlcigiMTIzIikqMTArTnVtYmVyKCI0IikpICB7CiAgJEVSUk9SKCcjMjogTnVtYmVyKCIxMjM0IikgPT09IE51bWJlcigiMTIzIikqMTArTnVtYmVyKCI0IiknKTsKfQoK",
"commentary":"The MV of DecimalDigits ::: DecimalDigits DecimalDigit is\n(the MV of DecimalDigits times 10) plus the MV of DecimalDigit",
"description":"Compare '12' with Number(\"1\")*10+Number(\"2\") and analogous",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A13.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUaGUgTVYgb2YgU2lnbmVkSW50ZWdlciA6OjogKyBEZWNpbWFsRGlnaXRzIGlzIHRoZSBNViBvZiBEZWNpbWFsRGlnaXRzCiAqCiAqIEBwYXRoIGNoMDkvOS4zLzkuMy4xL1M5LjMuMV9BMTQuanMKICogQGRlc2NyaXB0aW9uIENvbXBhcmUgTnVtYmVyKCcrMTIzNDU2Nzg5MCcpIHdpdGggKygnMTIzNDU2Nzg5MCcpCiAqLwoKLy8gQ0hFQ0sjMQppZiAoTnVtYmVyKCIrMTIzNDU2Nzg5MCIpICE9PSArKCIxMjM0NTY3ODkwIikpICB7CiAgJEVSUk9SKCcjMTogTnVtYmVyKCIrMTIzNDU2Nzg5MCIpID09PSArKCIxMjM0NTY3ODkwIiknKTsKfQoK",
"commentary":"The MV of SignedInteger ::: + DecimalDigits is the MV of DecimalDigits",
"description":"Compare Number('+1234567890') with +('1234567890')",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A14.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUaGUgTVYgb2YgU2lnbmVkSW50ZWdlciA6OjogLSBEZWNpbWFsRGlnaXRzIGlzIHRoZSBuZWdhdGl2ZSBvZiB0aGUgTVYgb2YgRGVjaW1hbERpZ2l0cwogKgogKiBAcGF0aCBjaDA5LzkuMy85LjMuMS9TOS4zLjFfQTE1LmpzCiAqIEBkZXNjcmlwdGlvbiBDb21wYXJlIC1OdW1iZXIoJzEyMzQ1Njc4OTAnKSB3aXRoICgnLTEyMzQ1Njc4OTAnKQogKi8KCi8vIENIRUNLIzEKaWYgKCsoIi0xMjM0NTY3ODkwIikgIT09IC1OdW1iZXIoIjEyMzQ1Njc4OTAiKSkgIHsKICAkRVJST1IoJyMxOiArKCItMTIzNDU2Nzg5MCIpID09PSAtTnVtYmVyKCIxMjM0NTY3ODkwIiknKTsKfQoK",
"commentary":"The MV of SignedInteger ::: - DecimalDigits is the negative of the MV of DecimalDigits",
"description":"Compare -Number('1234567890') with ('-1234567890')",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A15.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUaGUgTVYgb2YgRGVjaW1hbERpZ2l0IDo6OiAwIG9yIG9mIEhleERpZ2l0IDo6OiAwIGlzIDAKICoKICogQHBhdGggY2gwOS85LjMvOS4zLjEvUzkuMy4xX0ExNi5qcwogKiBAZGVzY3JpcHRpb24gQ29tcGFyZSBOdW1iZXIoJzB4MCcpIGFuZCBOdW1iZXIoJzBYMCcpIHdpdGggMAogKi8KCi8vIENIRUNLIzEKaWYgKE51bWJlcigiMCIpICE9PSAwKSB7CiAgJEVSUk9SKCcjMTogTnVtYmVyKCIwIikgPT09IDAuIEFjdHVhbDogJyArIChOdW1iZXIoIjAiKSkpOwp9CgovLyBDSEVDSyMyCmlmICgrKCIweDAiKSAhPT0gMCkgewogICRFUlJPUignIzI6ICsoIjB4MCIpID09PSAwLiBBY3R1YWw6ICcgKyAoKygiMHgwIikpKTsKfQoKLy8gQ0hFQ0sjMwppZiAoTnVtYmVyKCIwWDAiKSAhPT0gMCkgewogICRFUlJPUignIzM6IE51bWJlcigiMFgwIikgPT09IDAuIEFjdHVhbDogJyArIChOdW1iZXIoIjBYMCIpKSk7Cn0KCg==",
"commentary":"The MV of DecimalDigit ::: 0 or of HexDigit ::: 0 is 0",
"description":"Compare Number('0x0') and Number('0X0') with 0",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A16.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUaGUgTVYgb2YgRGVjaW1hbERpZ2l0IDo6OiAxIG9yIG9mIEhleERpZ2l0IDo6OiAxIGlzIDEKICoKICogQHBhdGggY2gwOS85LjMvOS4zLjEvUzkuMy4xX0ExNy5qcwogKiBAZGVzY3JpcHRpb24gQ29tcGFyZSBOdW1iZXIoJzB4MScpIGFuZCBOdW1iZXIoJzBYMScpIHdpdGggMQogKi8KCi8vIENIRUNLIzEKaWYgKE51bWJlcigiMSIpICE9PSAxKSAgewogICRFUlJPUignIzE6IE51bWJlcigiMSIpID09PSAxLiBBY3R1YWw6ICcgKyAoTnVtYmVyKCIxIikpKTsKfQoKLy8gQ0hFQ0sjMgppZiAoTnVtYmVyKCIweDEiKSAhPT0gMSkgIHsKICAkRVJST1IoJyMyOiBOdW1iZXIoIjB4MSIpID09PSAxLiBBY3R1YWw6ICcgKyAoTnVtYmVyKCIweDEiKSkpOwp9CgovLyBDSEVDSyMzCmlmICgrKCIwWDEiKSAhPT0gMSkgIHsKICAkRVJST1IoJyMzOiArKCIwWDEiKSA9PT0gMS4gQWN0dWFsOiAnICsgKCsoIjBYMSIpKSk7Cn0KCg==",
"commentary":"The MV of DecimalDigit ::: 1 or of HexDigit ::: 1 is 1",
"description":"Compare Number('0x1') and Number('0X1') with 1",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A17.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUaGUgTVYgb2YgRGVjaW1hbERpZ2l0IDo6OiAyIG9yIG9mIEhleERpZ2l0IDo6OiAyIGlzIDIKICoKICogQHBhdGggY2gwOS85LjMvOS4zLjEvUzkuMy4xX0ExOC5qcwogKiBAZGVzY3JpcHRpb24gQ29tcGFyZSBOdW1iZXIoJzB4MicpIGFuZCBOdW1iZXIoJzBYMicpIHdpdGggMgogKi8KCi8vIENIRUNLIzEKaWYgKCsoIjIiKSAhPT0gMikgIHsKICAkRVJST1IoJyMxOiArKCIyIikgPT09IDIuIEFjdHVhbDogJyArICgrKCIyIikpKTsKfQoKLy8gQ0hFQ0sjMgppZiAoTnVtYmVyKCIweDIiKSAhPT0gMikgIHsKICAkRVJST1IoJyMyOiBOdW1iZXIoIjB4MiIpID09PSAyLiBBY3R1YWw6ICcgKyAoTnVtYmVyKCIweDIiKSkpOwp9CgovLyBDSEVDSyMzCmlmIChOdW1iZXIoIjBYMiIpICE9PSAyKSAgewogICRFUlJPUignIzM6IE51bWJlcigiMFgyIikgPT09IDIuIEFjdHVhbDogJyArIChOdW1iZXIoIjBYMiIpKSk7Cn0KCg==",
"commentary":"The MV of DecimalDigit ::: 2 or of HexDigit ::: 2 is 2",
"description":"Compare Number('0x2') and Number('0X2') with 2",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A18.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUaGUgTVYgb2YgRGVjaW1hbERpZ2l0IDo6OiAzIG9yIG9mIEhleERpZ2l0IDo6OiAzIGlzIDMKICoKICogQHBhdGggY2gwOS85LjMvOS4zLjEvUzkuMy4xX0ExOS5qcwogKiBAZGVzY3JpcHRpb24gQ29tcGFyZSBOdW1iZXIoJzB4MycpIGFuZCBOdW1iZXIoJzBYMycpIHdpdGggMwogKi8KCi8vIENIRUNLIzEKaWYgKE51bWJlcigiMyIpICE9PSAzKSAgewogICRFUlJPUignIzE6IE51bWJlcigiMyIpID09PSAzLiBBY3R1YWw6ICcgKyAoTnVtYmVyKCIzIikpKTsKfQoKLy8gQ0hFQ0sjMgppZiAoKygiMHgzIikgIT09IDMpICB7CiAgJEVSUk9SKCcjMjogKygiMHgzIikgPT09IDMuIEFjdHVhbDogJyArICgrKCIweDMiKSkpOwp9CgovLyBDSEVDSyMzCmlmIChOdW1iZXIoIjBYMyIpICE9PSAzKSAgewogICRFUlJPUignIzM6IE51bWJlcigiMFgzIikgPT09IDMuIEFjdHVhbDogJyArIChOdW1iZXIoIjBYMyIpKSk7Cn0KCg==",
"commentary":"The MV of DecimalDigit ::: 3 or of HexDigit ::: 3 is 3",
"description":"Compare Number('0x3') and Number('0X3') with 3",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A19.js"
},
{
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EVDSyMzMAppZiAoTnVtYmVyKCJcdTIwNUYiKSAhPT0gMCkgewogICRFUlJPUignIzMwLjE6IE51bWJlcigiXFx1MjA1RiIpID09PSAwLiBBY3R1YWw6ICcgKyAoTnVtYmVyKCJcdTIwNUYiKSkpOwp9IGVsc2UgewogIGlmICgxL051bWJlcigiXHUyMDVGIikgIT09IE51bWJlci5QT1NJVElWRV9JTkZJTklUWSkgewogICAgJEVSUk9SKCcjMzAuMjogTnVtYmVyKCJcXHUyMDVGIikgPT09ICswLiBBY3R1YWw6IC0wJyk7CiAgfQkKfQoKLy8gQ0hFQ0sjMzEKaWYgKE51bWJlcigiXHUzMDAwIikgIT09IDApIHsKICAkRVJST1IoJyMzMS4xOiBOdW1iZXIoIlxcdTMwMDAiKSA9PT0gMC4gQWN0dWFsOiAnICsgKE51bWJlcigiXHUzMDAwIikpKTsKfSBlbHNlIHsKICBpZiAoMS9OdW1iZXIoIlx1MzAwMCIpICE9PSBOdW1iZXIuUE9TSVRJVkVfSU5GSU5JVFkpIHsKICAgICRFUlJPUignIzMxLjI6IE51bWJlcigiXFx1MzAwMCIpID09PSArMC4gQWN0dWFsOiAtMCcpOwogIH0JCn0KCg==",
"commentary":"The MV of StringNumericLiteral ::: StrWhiteSpace is 0",
"description":"Strings with various WhiteSpaces convert to Number by explicit transformation",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUaGUgTVYgb2YgRGVjaW1hbERpZ2l0IDo6OiA0IG9yIG9mIEhleERpZ2l0IDo6OiA0IGlzIDQKICoKICogQHBhdGggY2gwOS85LjMvOS4zLjEvUzkuMy4xX0EyMC5qcwogKiBAZGVzY3JpcHRpb24gQ29tcGFyZSBOdW1iZXIoJzB4NCcpIGFuZCBOdW1iZXIoJzBYNCcpIHdpdGggNAogKi8KCi8vIENIRUNLIzEKaWYgKE51bWJlcigiNCIpICE9PSA0KSAgewogICRFUlJPUignIzE6IE51bWJlcigiNCIpID09PSA0LiBBY3R1YWw6ICcgKyAoTnVtYmVyKCI0IikpKTsKfQoKLy8gQ0hFQ0sjMgppZiAoTnVtYmVyKCIweDQiKSAhPT0gNCkgIHsKICAkRVJST1IoJyMyOiBOdW1iZXIoIjB4NCIpID09PSA0LiBBY3R1YWw6ICcgKyAoTnVtYmVyKCIweDQiKSkpOwp9CgovLyBDSEVDSyMzCmlmICgrKCIwWDQiKSAhPT0gNCkgIHsKICAkRVJST1IoJyMzOiArKCIwWDQiKSA9PT0gNC4gQWN0dWFsOiAnICsgKCsoIjBYNCIpKSk7Cn0KCg==",
"commentary":"The MV of DecimalDigit ::: 4 or of HexDigit ::: 4 is 4",
"description":"Compare Number('0x4') and Number('0X4') with 4",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A20.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUaGUgTVYgb2YgRGVjaW1hbERpZ2l0IDo6OiA1IG9yIG9mIEhleERpZ2l0IDo6OiA1IGlzIDUKICoKICogQHBhdGggY2gwOS85LjMvOS4zLjEvUzkuMy4xX0EyMS5qcwogKiBAZGVzY3JpcHRpb24gQ29tcGFyZSBOdW1iZXIoJzB4NScpIGFuZCBOdW1iZXIoJzBYNScpIHdpdGggNQogKi8KCi8vIENIRUNLIzEKaWYgKCsoIjUiKSAhPT0gNSkgIHsKICAkRVJST1IoJyMxOiArKCI1IikgPT09IDUuIEFjdHVhbDogJyArICgrKCI1IikpKTsKfQoKLy8gQ0hFQ0sjMgppZiAoTnVtYmVyKCIweDUiKSAhPT0gNSkgIHsKICAkRVJST1IoJyMyOiBOdW1iZXIoIjB4NSIpID09PSA1LiBBY3R1YWw6ICcgKyAoTnVtYmVyKCIweDUiKSkpOwp9CgovLyBDSEVDSyMzCmlmIChOdW1iZXIoIjBYNSIpICE9PSA1KSAgewogICRFUlJPUignIzM6IE51bWJlcigiMFg1IikgPT09IDUuIEFjdHVhbDogJyArIChOdW1iZXIoIjBYNSIpKSk7Cn0KCg==",
"commentary":"The MV of DecimalDigit ::: 5 or of HexDigit ::: 5 is 5",
"description":"Compare Number('0x5') and Number('0X5') with 5",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A21.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUaGUgTVYgb2YgRGVjaW1hbERpZ2l0IDo6OiA2IG9yIG9mIEhleERpZ2l0IDo6OiA2IGlzIDYKICoKICogQHBhdGggY2gwOS85LjMvOS4zLjEvUzkuMy4xX0EyMi5qcwogKiBAZGVzY3JpcHRpb24gQ29tcGFyZSBOdW1iZXIoJzB4NicpIGFuZCBOdW1iZXIoJzBYNicpIHdpdGggNgogKi8KCi8vIENIRUNLIzEKaWYgKE51bWJlcigiNiIpICE9PSA2KSAgewogICRFUlJPUignIzE6IE51bWJlcigiNiIpID09PSA2LiBBY3R1YWw6ICcgKyAoTnVtYmVyKCI2IikpKTsKfQoKLy8gQ0hFQ0sjMgppZiAoKygiMHg2IikgIT09IDYpICB7CiAgJEVSUk9SKCcjMjogKygiMHg2IikgPT09IDYuIEFjdHVhbDogJyArICgrKCIweDYiKSkpOwp9CgovLyBDSEVDSyMzCmlmIChOdW1iZXIoIjBYNiIpICE9PSA2KSAgewogICRFUlJPUignIzM6IE51bWJlcigiMFg2IikgPT09IDYuIEFjdHVhbDogJyArIChOdW1iZXIoIjBYNiIpKSk7Cn0KCg==",
"commentary":"The MV of DecimalDigit ::: 6 or of HexDigit ::: 6 is 6",
"description":"Compare Number('0x6') and Number('0X6') with 6",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A22.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUaGUgTVYgb2YgRGVjaW1hbERpZ2l0IDo6OiA3IG9yIG9mIEhleERpZ2l0IDo6OiA3IGlzIDcKICoKICogQHBhdGggY2gwOS85LjMvOS4zLjEvUzkuMy4xX0EyMy5qcwogKiBAZGVzY3JpcHRpb24gQ29tcGFyZSBOdW1iZXIoJzB4NycpIGFuZCBOdW1iZXIoJzBYNycpIHdpdGggNwogKi8KCi8vIENIRUNLIzEKaWYgKE51bWJlcigiNyIpICE9PSA3KSAgewogICRFUlJPUignIzE6IE51bWJlcigiNyIpID09PSA3LiBBY3R1YWw6ICcgKyAoTnVtYmVyKCI3IikpKTsKfQoKLy8gQ0hFQ0sjMgppZiAoTnVtYmVyKCIweDciKSAhPT0gNykgIHsKICAkRVJST1IoJyMyOiBOdW1iZXIoIjB4NyIpID09PSA3LiBBY3R1YWw6ICcgKyAoTnVtYmVyKCIweDciKSkpOwp9CgovLyBDSEVDSyMzCmlmICgrKCIwWDciKSAhPT0gNykgIHsKICAkRVJST1IoJyMzOiArKCIwWDciKSA9PT0gNy4gQWN0dWFsOiAnICsgKCsoIjBYNyIpKSk7Cn0KCg==",
"commentary":"The MV of DecimalDigit ::: 7 or of HexDigit ::: 7 is 7",
"description":"Compare Number('0x7') and Number('0X7') with 7",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A23.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUaGUgTVYgb2YgRGVjaW1hbERpZ2l0IDo6OiA4IG9yIG9mIEhleERpZ2l0IDo6OiA4IGlzIDgKICoKICogQHBhdGggY2gwOS85LjMvOS4zLjEvUzkuMy4xX0EyNC5qcwogKiBAZGVzY3JpcHRpb24gQ29tcGFyZSBOdW1iZXIoJzB4OCcpIGFuZCBOdW1iZXIoJzBYOCcpIHdpdGggOAogKi8KCi8vIENIRUNLIzEKaWYgKCsoIjgiKSAhPT0gOCkgIHsKICAkRVJST1IoJyMxOiArKCI4IikgPT09IDguIEFjdHVhbDogJyArICgrKCI4IikpKTsKfQoKLy8gQ0hFQ0sjMgppZiAoTnVtYmVyKCIweDgiKSAhPT0gOCkgIHsKICAkRVJST1IoJyMyOiBOdW1iZXIoIjB4OCIpID09PSA4LiBBY3R1YWw6ICcgKyAoTnVtYmVyKCIweDgiKSkpOwp9CgovLyBDSEVDSyMzCmlmIChOdW1iZXIoIjBYOCIpICE9PSA4KSAgewogICRFUlJPUignIzM6IE51bWJlcigiMFg4IikgPT09IDguIEFjdHVhbDogJyArIChOdW1iZXIoIjBYOCIpKSk7Cn0KCg==",
"commentary":"The MV of DecimalDigit ::: 8 or of HexDigit ::: 8 is 8",
"description":"Compare Number('0x8') and Number('0X8') with 8",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A24.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUaGUgTVYgb2YgRGVjaW1hbERpZ2l0IDo6OiA5IG9yIG9mIEhleERpZ2l0IDo6OiA5IGlzIDkKICoKICogQHBhdGggY2gwOS85LjMvOS4zLjEvUzkuMy4xX0EyNS5qcwogKiBAZGVzY3JpcHRpb24gQ29tcGFyZSBOdW1iZXIoJzB4OScpIGFuZCBOdW1iZXIoJzBYOScpIHdpdGggOQogKi8KCi8vIENIRUNLIzEKaWYgKE51bWJlcigiOSIpICE9PSA5KSAgewogICRFUlJPUignIzE6IE51bWJlcigiOSIpID09PSA5LiBBY3R1YWw6ICcgKyAoTnVtYmVyKCI5IikpKTsKfQoKLy8gQ0hFQ0sjMgppZiAoKygiMHg5IikgIT09IDkpICB7CiAgJEVSUk9SKCcjMjogKygiMHg5IikgPT09IDkuIEFjdHVhbDogJyArICgrKCIweDkiKSkpOwp9CgovLyBDSEVDSyMzCmlmIChOdW1iZXIoIjBYOSIpICE9PSA5KSAgewogICRFUlJPUignIzM6IE51bWJlcigiMFg5IikgPT09IDkuIEFjdHVhbDogJyArIChOdW1iZXIoIjBYOSIpKSk7Cn0KCg==",
"commentary":"The MV of DecimalDigit ::: 9 or of HexDigit ::: 9 is 9",
"description":"Compare Number('0x9') and Number('0X9') with 9",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A25.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUaGUgTVYgb2YgSGV4RGlnaXQgOjo6IGEgb3Igb2YgSGV4RGlnaXQgOjo6IEEgaXMgMTAKICoKICogQHBhdGggY2gwOS85LjMvOS4zLjEvUzkuMy4xX0EyNi5qcwogKiBAZGVzY3JpcHRpb24gQ29tcGFyZSBOdW1iZXIoJzB4QScpLCBOdW1iZXIoJzBYQScpLCBOdW1iZXIoJzB4YScpIGFuZCBOdW1iZXIoJzBYYScpIHdpdGggMTAKICovCgovLyBDSEVDSyMxCmlmIChOdW1iZXIoIjB4YSIpICE9PSAxMCkgIHsKICAkRVJST1IoJyMxOiBOdW1iZXIoIjB4YSIpID09PSAxMC4gQWN0dWFsOiAnICsgKE51bWJlcigiMHhhIikpKTsKfQoKLy8gQ0hFQ0sjMgppZiAoTnVtYmVyKCIweEEiKSAhPT0gMTApICB7CiAgJEVSUk9SKCcjMjogTnVtYmVyKCIweEEiKSA9PT0gMTAuIEFjdHVhbDogJyArIChOdW1iZXIoIjB4QSIpKSk7Cn0KCi8vIENIRUNLIzMKaWYgKE51bWJlcigiMFhhIikgIT09IDEwKSAgewogICRFUlJPUignIzM6IE51bWJlcigiMFhhIikgPT09IDEwLiBBY3R1YWw6ICcgKyAoTnVtYmVyKCIwWGEiKSkpOwp9CgovLyBDSEVDSyM0CmlmICgrKCIwWEEiKSAhPT0gMTApICB7CiAgJEVSUk9SKCcjNDogKygiMFhBIikgPT09IDEwLiBBY3R1YWw6ICcgKyAoKygiMFhBIikpKTsKfQoK",
"commentary":"The MV of HexDigit ::: a or of HexDigit ::: A is 10",
"description":"Compare Number('0xA'), Number('0XA'), Number('0xa') and Number('0Xa') with 10",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A26.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUaGUgTVYgb2YgSGV4RGlnaXQgOjo6IGIgb3Igb2YgSGV4RGlnaXQgOjo6IEIgaXMgMTEKICoKICogQHBhdGggY2gwOS85LjMvOS4zLjEvUzkuMy4xX0EyNy5qcwogKiBAZGVzY3JpcHRpb24gQ29tcGFyZSBOdW1iZXIoJzB4QicpLCBOdW1iZXIoJzBYQicpLCBOdW1iZXIoJzB4YicpIGFuZCBOdW1iZXIoJzBYYicpIHdpdGggMTEKICovCgovLyBDSEVDSyMxCmlmIChOdW1iZXIoIjB4YiIpICE9PSAxMSkgIHsKICAkRVJST1IoJyMxOiBOdW1iZXIoIjB4YiIpID09PSAxMS4gQWN0dWFsOiAnICsgKE51bWJlcigiMHhiIikpKTsKfQoKLy8gQ0hFQ0sjMgppZiAoTnVtYmVyKCIweEIiKSAhPT0gMTEpICB7CiAgJEVSUk9SKCcjMjogTnVtYmVyKCIweEIiKSA9PT0gMTEuIEFjdHVhbDogJyArIChOdW1iZXIoIjB4QiIpKSk7Cn0KCi8vIENIRUNLIzMKaWYgKCsoIjBYYiIpICE9PSAxMSkgIHsKICAkRVJST1IoJyMzOiArKCIwWGIiKSA9PT0gMTEuIEFjdHVhbDogJyArICgrKCIwWGIiKSkpOwp9CgovLyBDSEVDSyM0CmlmIChOdW1iZXIoIjBYQiIpICE9PSAxMSkgIHsKICAkRVJST1IoJyM0OiBOdW1iZXIoIjBYQiIpID09PSAxMS4gQWN0dWFsOiAnICsgKE51bWJlcigiMFhCIikpKTsKfQoK",
"commentary":"The MV of HexDigit ::: b or of HexDigit ::: B is 11",
"description":"Compare Number('0xB'), Number('0XB'), Number('0xb') and Number('0Xb') with 11",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A27.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUaGUgTVYgb2YgSGV4RGlnaXQgOjo6IGMgb3Igb2YgSGV4RGlnaXQgOjo6IEMgaXMgMTIKICoKICogQHBhdGggY2gwOS85LjMvOS4zLjEvUzkuMy4xX0EyOC5qcwogKiBAZGVzY3JpcHRpb24gQ29tcGFyZSBOdW1iZXIoJzB4QycpLCBOdW1iZXIoJzBYQycpLCBOdW1iZXIoJzB4YycpIGFuZCBOdW1iZXIoJzBYYycpIHdpdGggMTIKICovCgovLyBDSEVDSyMxCmlmIChOdW1iZXIoIjB4YyIpICE9PSAxMikgIHsKICAkRVJST1IoJyMxOiBOdW1iZXIoIjB4YyIpID09PSAxMi4gQWN0dWFsOiAnICsgKE51bWJlcigiMHhjIikpKTsKfQoKLy8gQ0hFQ0sjMgppZiAoKygiMHhDIikgIT09IDEyKSAgewogICRFUlJPUignIzI6ICsoIjB4QyIpID09PSAxMi4gQWN0dWFsOiAnICsgKCsoIjB4QyIpKSk7Cn0KCi8vIENIRUNLIzMKaWYgKE51bWJlcigiMFhjIikgIT09IDEyKSAgewogICRFUlJPUignIzM6IE51bWJlcigiMFhjIikgPT09IDEyLiBBY3R1YWw6ICcgKyAoTnVtYmVyKCIwWGMiKSkpOwp9CgovLyBDSEVDSyM0CmlmIChOdW1iZXIoIjBYQyIpICE9PSAxMikgIHsKICAkRVJST1IoJyM0OiBOdW1iZXIoIjBYQyIpID09PSAxMi4gQWN0dWFsOiAnICsgKE51bWJlcigiMFhDIikpKTsKfQoK",
"commentary":"The MV of HexDigit ::: c or of HexDigit ::: C is 12",
"description":"Compare Number('0xC'), Number('0XC'), Number('0xc') and Number('0Xc') with 12",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A28.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUaGUgTVYgb2YgSGV4RGlnaXQgOjo6IGQgb3Igb2YgSGV4RGlnaXQgOjo6IEQgaXMgMTMKICoKICogQHBhdGggY2gwOS85LjMvOS4zLjEvUzkuMy4xX0EyOS5qcwogKiBAZGVzY3JpcHRpb24gQ29tcGFyZSBOdW1iZXIoJzB4RCcpLCBOdW1iZXIoJzBYRCcpLCBOdW1iZXIoJzB4ZCcpIGFuZCBOdW1iZXIoJzBYZCcpIHdpdGggMTMKICovCgovLyBDSEVDSyMxCmlmICgrKCIweGQiKSAhPT0gMTMpICB7CiAgJEVSUk9SKCcjMTogKygiMHhkIikgPT09IDEzLiBBY3R1YWw6ICcgKyAoKygiMHhkIikpKTsKfQoKLy8gQ0hFQ0sjMgppZiAoTnVtYmVyKCIweEQiKSAhPT0gMTMpICB7CiAgJEVSUk9SKCcjMjogTnVtYmVyKCIweEQiKSA9PT0gMTMuIEFjdHVhbDogJyArIChOdW1iZXIoIjB4RCIpKSk7Cn0KCi8vIENIRUNLIzMKaWYgKE51bWJlcigiMFhkIikgIT09IDEzKSAgewogICRFUlJPUignIzM6IE51bWJlcigiMFhkIikgPT09IDEzLiBBY3R1YWw6ICcgKyAoTnVtYmVyKCIwWGQiKSkpOwp9CgovLyBDSEVDSyM0CmlmIChOdW1iZXIoIjBYRCIpICE9PSAxMykgIHsKICAkRVJST1IoJyM0OiBOdW1iZXIoIjBYRCIpID09PSAxMy4gQWN0dWFsOiAnICsgKE51bWJlcigiMFhEIikpKTsKfQoK",
"commentary":"The MV of HexDigit ::: d or of HexDigit ::: D is 13",
"description":"Compare Number('0xD'), Number('0XD'), Number('0xd') and Number('0Xd') with 13",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A29.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUaGUgTVYgb2YgSGV4RGlnaXQgOjo6IGUgb3Igb2YgSGV4RGlnaXQgOjo6IEUgaXMgMTQKICoKICogQHBhdGggY2gwOS85LjMvOS4zLjEvUzkuMy4xX0EzMC5qcwogKiBAZGVzY3JpcHRpb24gQ29tcGFyZSBOdW1iZXIoJzB4RScpLCBOdW1iZXIoJzBYRScpLCBOdW1iZXIoJzB4ZScpIGFuZCBOdW1iZXIoJzBYZScpIHdpdGggMTQKICovCgovLyBDSEVDSyMxCmlmIChOdW1iZXIoIjB4ZSIpICE9PSAxNCkgIHsKICAkRVJST1IoJyMxOiBOdW1iZXIoIjB4ZSIpID09PSAxNC4gQWN0dWFsOiAnICsgKE51bWJlcigiMHhlIikpKTsKfQoKLy8gQ0hFQ0sjMgppZiAoTnVtYmVyKCIweEUiKSAhPT0gMTQpICB7CiAgJEVSUk9SKCcjMjogTnVtYmVyKCIweEUiKSA9PT0gMTQuIEFjdHVhbDogJyArIChOdW1iZXIoIjB4RSIpKSk7Cn0KCi8vIENIRUNLIzMKaWYgKE51bWJlcigiMFhlIikgIT09IDE0KSAgewogICRFUlJPUignIzM6IE51bWJlcigiMFhlIikgPT09IDE0LiBBY3R1YWw6ICcgKyAoTnVtYmVyKCIwWGUiKSkpOwp9CgovLyBDSEVDSyM0CmlmICgrKCIwWEUiKSAhPT0gMTQpICB7CiAgJEVSUk9SKCcjNDogKygiMFhFIikgPT09IDE0LiBBY3R1YWw6ICcgKyAoKygiMFhFIikpKTsKfQoK",
"commentary":"The MV of HexDigit ::: e or of HexDigit ::: E is 14",
"description":"Compare Number('0xE'), Number('0XE'), Number('0xe') and Number('0Xe') with 14",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A30.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUaGUgTVYgb2YgSGV4RGlnaXQgOjo6IGYgb3Igb2YgSGV4RGlnaXQgOjo6IEYgaXMgMTUKICoKICogQHBhdGggY2gwOS85LjMvOS4zLjEvUzkuMy4xX0EzMS5qcwogKiBAZGVzY3JpcHRpb24gQ29tcGFyZSBOdW1iZXIoJzB4RicpLCBOdW1iZXIoJzBYRicpLCBOdW1iZXIoJzB4ZicpIGFuZCBOdW1iZXIoJzBYZicpIHdpdGggMTUKICovCgovLyBDSEVDSyMxCmlmIChOdW1iZXIoIjB4ZiIpICE9PSAxNSkgIHsKICAkRVJST1IoJyMxOiBOdW1iZXIoIjB4ZiIpID09PSAxNS4gQWN0dWFsOiAnICsgKE51bWJlcigiMHhmIikpKTsKfQoKLy8gQ0hFQ0sjMgppZiAoTnVtYmVyKCIweEYiKSAhPT0gMTUpICB7CiAgJEVSUk9SKCcjMjogTnVtYmVyKCIweEYiKSA9PT0gMTUuIEFjdHVhbDogJyArIChOdW1iZXIoIjB4RiIpKSk7Cn0KCi8vIENIRUNLIzMKaWYgKCsoIjBYZiIpICE9PSAxNSkgIHsKICAkRVJST1IoJyMzOiArKCIwWGYiKSA9PT0gMTUuIEFjdHVhbDogJyArICgrKCIwWGYiKSkpOwp9CgovLyBDSEVDSyM0CmlmIChOdW1iZXIoIjBYRiIpICE9PSAxNSkgIHsKICAkRVJST1IoJyM0OiBOdW1iZXIoIjBYRiIpID09PSAxNS4gQWN0dWFsOiAnICsgKE51bWJlcigiMFhGIikpKTsKfQoK",
"commentary":"The MV of HexDigit ::: f or of HexDigit ::: F is 15",
"description":"Compare Number('0xF'), Number('0XF'), Number('0xf') and Number('0Xf') with 15",
"path":"Test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jM0NTY3ODkwLjEyMzQ1NjcwMDAuIEFjdHVhbDogJyArIChOdW1iZXIoIjEyMzQ1Njc4OTAuMTIzNDU2Nzg5MCIpKSk7Cn0KCi8vIENIRUNLIzMKaWYgKCsoIjEyMzQ1Njc4OTAuMTIzNDU2Nzg5MCIpID09PSAxMjM0NTY3ODkwLjEyMzQ1NikgewogICRFUlJPUignIzM6ICsoIjEyMzQ1Njc4OTAuMTIzNDU2Nzg5MCIpICE9PSAxMjM0NTY3ODkwLjEyMzQ1NicpOwp9CgovLyBDSEVDSyM0CmlmIChOdW1iZXIoIjAuMTIzNDU2Nzg5MDEyMzQ1Njc4OTAiKSAhPT0gMC4xMjM0NTY3ODkwMTIzNDU2NzgpICB7CiAgJEVSUk9SKCcjNDogTnVtYmVyKCIwLjEyMzQ1Njc4OTAxMjM0NTY3ODkwIikgPT09IDAuMTIzNDU2Nzg5MDEyMzQ1Njc4LiBBY3R1YWw6ICcgKyAoTnVtYmVyKCIwLjEyMzQ1Njc4OTAxMjM0NTY3ODkwIikpKTsKfQoKLy8gQ0hFQ0sjNAppZiAoTnVtYmVyKCIwMC4xMjM0NTY3ODkwMTIzNDU2Nzg5MCIpICE9PSAwLjEyMzQ1Njc4OTAxMjM0NTY3OCkgIHsKICAkRVJST1IoJyM0OiBOdW1iZXIoIjAwLjEyMzQ1Njc4OTAxMjM0NTY3ODkwIikgPT09IDAuMTIzNDU2Nzg5MDEyMzQ1Njc4LiBBY3R1YWw6ICcgKyAoTnVtYmVyKCIwMC4xMjM0NTY3ODkwMTIzNDU2Nzg5MCIpKSk7Cn0KCg==",
"commentary":"Once the exact MV for a string numeric literal has been\ndetermined, it is then rounded to a value of the Number type with 20\nsignificant digits by replacing each significant digit after the 20th\nwith a 0 digit or the number value",
"description":"Use various long numbers, for example, 1234567890.1234567890",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A32.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0a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MjAwMlx1MjAwM1x1MjAwNFx1MjAwNVx1MjAwNlx1MjAwN1x1MjAwOFx1MjAwOVx1MjAwQVx1MjAyRlx1MjA1Rlx1MzAwMC1JbmZpbml0eVx1MDAwOVx1MDAwQ1x1MDAyMFx1MDBBMFx1MDAwQlx1MDAwQVx1MDAwRFx1MjAyOFx1MjAyOVx1MTY4MFx1MTgwRVx1MjAwMFx1MjAwMVx1MjAwMlx1MjAwM1x1MjAwNFx1MjAwNVx1MjAwNlx1MjAwN1x1MjAwOFx1MjAwOVx1MjAwQVx1MjAyRlx1MjA1Rlx1MzAwMCIpID09IE51bWJlcigtIkluZmluaXR5IikpKSB7CiAgJEVSUk9SKCcjNDogTnVtYmVyKCJcXHUwMDA5XFx1MDAwQ1xcdTAwMjBcXHUwMEEwXFx1MDAwQlxcdTAwMEFcXHUwMDBEXFx1MjAyOFxcdTIwMjlcXHUxNjgwXFx1MTgwRVxcdTIwMDBcXHUyMDAxXFx1MjAwMlxcdTIwMDNcXHUyMDA0XFx1MjAwNVxcdTIwMDZcXHUyMDA3XFx1MjAwOFxcdTIwMDlcXHUyMDBBXFx1MjAyRlxcdTIwNUZcXHUzMDAwLUluZmluaXR5XFx1MDAwOVxcdTAwMENcXHUwMDIwXFx1MDBBMFxcdTAwMEJcXHUwMDBBXFx1MDAwRFxcdTIwMjhcXHUyMDI5XFx1MTY4MFxcdTE4MEVcXHUyMDAwXFx1MjAwMVxcdTIwMDJcXHUyMDAzXFx1MjAwNFxcdTIwMDVcXHUyMDA2XFx1MjAwN1xcdTIwMDhcXHUyMDA5XFx1MjAwQVxcdTIwMkZcXHUyMDVGXFx1MzAwMCIpID09IE51bWJlcigiLUluZmluaXR5IiknKTsKfQoK",
"commentary":"The MV of StringNumericLiteral ::: StrWhiteSpaceopt StrNumericLiteral StrWhiteSpaceopt is the MV of StrNumericLiteral, no matter whether white space is present or not",
"description":"static string",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A3_T1.js"
},
{
"code":"Ly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UluZmkiKyJuaXR5XFx1MDAwOVxcdTAwMENcXHUwMDIwXFx1MDBBMFxcdTAwMEJcXHUwMDBBXFx1MDAwRFxcdTIwMjhcXHUyMDI5XFx1MTY4MFxcdTE4MEVcXHUyMDAwXFx1MjAwMVxcdTIwMDJcXHUyMDAzXFx1MjAwNFxcdTIwMDVcXHUyMDA2XFx1MjAwN1xcdTIwMDhcXHUyMDA5XFx1MjAwQVxcdTIwMkZcXHUyMDVGXFx1MzAwMCIpID09IE51bWJlcigiLUluZmluaXR5IiknKTsKfQoK",
"commentary":"The MV of StringNumericLiteral ::: StrWhiteSpaceopt StrNumericLiteral StrWhiteSpaceopt is the MV of StrNumericLiteral, no matter whether white space is present or not",
"description":"dynamic string",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A3_T2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUaGUgTVYgb2YgU3RyRGVjaW1hbExpdGVyYWw6OjogKyBTdHJVbnNpZ25lZERlY2ltYWxMaXRlcmFsIGlzIHRoZSBNViBvZiBTdHJVbnNpZ25lZERlY2ltYWxMaXRlcmFsCiAqCiAqIEBwYXRoIGNoMDkvOS4zLzkuMy4xL1M5LjMuMV9BNF9UMS5qcwogKiBAZGVzY3JpcHRpb24gQ29tcGFyZSBOdW1iZXIoJythbnlfbnVtYmVyJykgd2l0aCBOdW1iZXIoJ2FueV9udW1iZXInKQogKi8KCi8vIENIRUNLIzEKaWYgKE51bWJlcigiKzAiKSAhPT0gTnVtYmVyKCIwIikpIHsKICAkRVJST1IoJyMxLjE6IE51bWJlcigiKzAiKSA9PT0gTnVtYmVyKCIwIiknKTsKfSBlbHNlIHsKICAvLyBDSEVDSyMyCiAgaWYgKDEvTnVtYmVyKCIrMCIpICE9PSAxL051bWJlcigiMCIpKSB7CiAgICAkRVJST1IoJyMyLjI6IDEvTnVtYmVy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T0gTnVtYmVyKCIxMjM0LjU2NzhFLTkwIiknKTsKfQoK",
"commentary":"The MV of StrDecimalLiteral::: + StrUnsignedDecimalLiteral is the MV of StrUnsignedDecimalLiteral",
"description":"Compare Number('+any_number') with Number('any_number')",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A4_T1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUaGUgTVYgb2YgU3RyRGVjaW1hbExpdGVyYWw6OjogKyBTdHJVbnNpZ25lZERlY2ltYWxMaXRlcmFsIGlzIHRoZSBNViBvZiBTdHJVbnNpZ25lZERlY2ltYWxMaXRlcmFsCiAqCiAqIEBwYXRoIGNoMDkvOS4zLzkuMy4xL1M5LjMuMV9BNF9UMi5qcwogKiBAZGVzY3JpcHRpb24gQ29tcGFyZSBOdW1iZXIoJysnICsgJ2FueV9udW1iZXInKSB3aXRoIE51bWJlcignYW55X251bWJlcicpCiAqLwoKZnVuY3Rpb24gZHluYVN0cmluZyhzMSwgczIpewogIHJldHVybiBTdHJpbmcoczEpK1N0cmluZyhzMik7Cn0KCi8vIENIRUNLIzEKaWYgKE51bWJlcihkeW5hU3RyaW5nKCIrIiwgIjAiKSkgIT09IE51bWJlcigiMCIpKSB7CiAgJEVSUk9SKCcjMTogTnVtYmVyKCIrIisiMCIpID09PSBOdW1iZXIoIjAiKScpOwp9IGVsc2UgewogIC8vIENIRUNLIzIKICBpZiAoMS9OdW1iZXIoZHluYVN0cmluZygiKyIsICIwIikpICE9PSAxL051bWJlcigiMCIpKSB7CiAgICAkRVJST1IoJyMyOiAxL051bWJlcigiKyIrIjAiKSA9PT0gMS9OdW1iZXIoIjAiKScpOwogIH0KfQoKLy8gQ0hFQ0sjMwppZiAoTnVtYmVyKGR5bmFTdHJpbmcoIitJbmZpIiwgIm5pdHkiKSkgIT09IE51bWJlcigiSW5maW5pdHkiKS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09IE51bWJlcigiMTIzNC41Njc4RS05MCIpJyk7Cn0KCg==",
"commentary":"The MV of StrDecimalLiteral::: + StrUnsignedDecimalLiteral is the MV of StrUnsignedDecimalLiteral",
"description":"Compare Number('+' + 'any_number') with Number('any_number')",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A4_T2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUaGUgTVYgb2YgU3RyRGVjaW1hbExpdGVyYWw6OjogLSBTdHJVbnNpZ25lZERlY2ltYWxMaXRlcmFsIGlzIHRoZSBuZWdhdGl2ZQogKiBvZiB0aGUgTVYgb2YgU3RyVW5zaWduZWREZWNpbWFsTGl0ZXJhbC4gKHRoZSBuZWdhdGl2ZSBvZiB0aGlzIDAgaXMgYWxzbyAwKQogKgogKiBAcGF0aCBjaDA5LzkuMy85LjMuMS9TOS4zLjFfQTVfVDEuanMKICogQGRlc2NyaXB0aW9uIENvbXBhcmUgTnVtYmVyKCctYW55X251bWJlcicpIHdpdGggLU51bWJlcignYW55X251bWJlcicpCiAqLwoKLy8gQ0hFQ0sjMQppZiAoTnVtYmVyKCItMCIpICE9PSAtTnVtYmVyKCIwIikpIHsKICAkRVJST1IoJyMxOiBOdW1iZXIoIi0wIikgPT09IC1OdW1iZXIoIjAiKScpOwp9IGVsc2UgewogIC8vIENIRUNLIzIKICBpZiAoMS9OdW1iZXIoIi0wIikgIT09IC0xL051bWJlcigiMCIpKSB7CiAgICAkRVJST1IoJyMyOiAxL051bWJlcigiLTAiKSA9PT0gLTEvTnVtYmVyKCIwIiknKTsKICB9Cn0KCi8vIENIRUNLIzMKaWYgKE51bWJlcigiLUluZmluaXR5IikgIT09IC1OdW1iZXIoIkluZmluaXR5IikpIHsKICAkRVJST1IoJyMzOiBOdW1iZXIoIi1JbmZpbml0eSIpID09PSAtTnVtYmVyKCJJbmZpbml0eS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KSA9PT0gLU51bWJlcigiMTIzNC41Njc4RS05MCIpJyk7Cn0KCi8vIENIRUNLIzEwCmlmIChOdW1iZXIoIi1JbmZpbml0eSIpICE9PSBOdW1iZXIuTkVHQVRJVkVfSU5GSU5JVFkpIHsKICAkRVJST1IoJyMzOiBOdW1iZXIoIi1JbmZpbml0eSIpID09PSBOdW1iZXIuTkVHQVRJVkVfSU5GSU5JVFknKTsKfQoK",
"commentary":"The MV of StrDecimalLiteral::: - StrUnsignedDecimalLiteral is the negative\nof the MV of StrUnsignedDecimalLiteral. (the negative of this 0 is also 0)",
"description":"Compare Number('-any_number') with -Number('any_number')",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A5_T1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUaGUgTVYgb2YgU3RyRGVjaW1hbExpdGVyYWw6OjogLSBTdHJVbnNpZ25lZERlY2ltYWxMaXRlcmFsIGlzIHRoZSBuZWdhdGl2ZQogKiBvZiB0aGUgTVYgb2YgU3RyVW5zaWduZWREZWNpbWFsTGl0ZXJhbC4gKHRoZSBuZWdhdGl2ZSBvZiB0aGlzIDAgaXMgYWxzbyAwKQogKgogKiBAcGF0aCBjaDA5LzkuMy85LjMuMS9TOS4zLjFfQTVfVDIuanMKICogQGRlc2NyaXB0aW9uIENvbXBhcmUgTnVtYmVyKCctW29yICtdYW55X251bWJlcicpIHdpdGggLVtvciB3aXRob3V0IC1dYW55X251bWJlcikKICovCgovLyBDSEVDSyMxCmlmIChOdW1iZXIoIjEiKSAhPT0gMSkgewogICRFUlJPUignIzE6IE51bWJlcigiMSIpID09PSAxJyk7Cn0KCi8vIENIRUNLIzIKaWYgKE51bWJlcigiKzEiKSAhPT0gMSkgewogICRFUlJPUignIzM6IE51bWJlcigiKzEiKSA9PT0gMScpOwp9CgovLyBDSEVDSyMzCmlmIChOdW1iZX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CgovLyBDSEVDSyMyNQppZiAoTnVtYmVyKCI5IikgIT09IDkpIHsKICAkRVJST1IoJyMyNTogTnVtYmVyKCI5IikgPT09IDknKTsKfQoKLy8gQ0hFQ0sjMjYKaWYgKE51bWJlcigiKzkiKSAhPT0gOSkgewogICRFUlJPUignIzI2OiBOdW1iZXIoIis5IikgPT09IDknKTsKfQoKLy8gQ0hFQ0sjMjcKaWYgKE51bWJlcigiLTkiKSAhPT0gLTkpIHsKICAkRVJST1IoJyMyNzogTnVtYmVyKCItOSIpID09PSAtOScpOwp9Cgo=",
"commentary":"The MV of StrDecimalLiteral::: - StrUnsignedDecimalLiteral is the negative\nof the MV of StrUnsignedDecimalLiteral. (the negative of this 0 is also 0)",
"description":"Compare Number('-[or +]any_number') with -[or without -]any_number)",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A5_T2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUaGUgTVYgb2YgU3RyRGVjaW1hbExpdGVyYWw6OjogLSBTdHJVbnNpZ25lZERlY2ltYWxMaXRlcmFsIGlzIHRoZSBuZWdhdGl2ZQogKiBvZiB0aGUgTVYgb2YgU3RyVW5zaWduZWREZWNpbWFsTGl0ZXJhbC4gKHRoZSBuZWdhdGl2ZSBvZiB0aGlzIDAgaXMgYWxzbyAwKQogKgogKiBAcGF0aCBjaDA5LzkuMy85LjMuMS9TOS4zLjFfQTVfVDMuanMKICogQGRlc2NyaXB0aW9uIENvbXBhcmUgTnVtYmVyKCctJyArICdhbnlfbnVtYmVyJykgd2l0aCAtTnVtYmVyKCdhbnlfbnVtYmVyJykKICovCgpmdW5jdGlvbiBkeW5hU3RyaW5nKHMxLCBzMil7CiAgcmV0dXJuIFN0cmluZyhzMSkrU3RyaW5nKHMyKTsKfQoKLy8gQ0hFQ0sjMQppZiAoTnVtYmVyKGR5bmFTdHJpb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M0LjU2NzhlOTAiKScpOwp9CgovLyBDSEVDSyM3CmlmIChOdW1iZXIoZHluYVN0cmluZygiLTEyMzQuIiwgIjU2NzhFOTAiKSkgIT09IC1OdW1iZXIoIjEyMzQuNTY3OEU5MCIpKSB7CiAgJEVSUk9SKCcjNjogTnVtYmVyKCItMTIzNC4iKyI1Njc4RTkwIikgPT09IC1OdW1iZXIoIjEyMzQuNTY3OEU5MCIpJyk7Cn0KCi8vIENIRUNLIzgKaWYgKE51bWJlcihkeW5hU3RyaW5nKCItMTIzNC4iLCAiNTY3OGUtOTAiKSkgIT09IC1OdW1iZXIoIjEyMzQuNTY3OGUtOTAiKSkgewogICRFUlJPUignIzY6IE51bWJlcigiLTEyMzQuIisiNTY3OGUtOTAiKSA9PT0gLU51bWJlcigiMTIzNC41Njc4ZS05MCIpJyk7Cn0KCi8vIENIRUNLIzkKaWYgKE51bWJlcihkeW5hU3RyaW5nKCItMTIzNC4iLCAiNTY3OEUtOTAiKSkgIT09IC1OdW1iZXIoIjEyMzQuNTY3OEUtOTAiKSkgewogICRFUlJPUignIzY6IE51bWJlcigiLTEyMzQuIisiNTY3OEUtOTAiKSA9PT0gLU51bWJlcigiMTIzNC41Njc4RS05MCIpJyk7Cn0KCi8vIENIRUNLIzEwCmlmIChOdW1iZXIoZHluYVN0cmluZygiLUluZmkiLCAibml0eSIpKSAhPT0gTnVtYmVyLk5FR0FUSVZFX0lORklOSVRZKSB7CiAgJEVSUk9SKCcjMzogTnVtYmVyKCItSW5maSIrIm5pdHkiKSA9PT0gTnVtYmVyLk5FR0FUSVZFX0lORklOSVRZJyk7Cn0KCg==",
"commentary":"The MV of StrDecimalLiteral::: - StrUnsignedDecimalLiteral is the negative\nof the MV of StrUnsignedDecimalLiteral. (the negative of this 0 is also 0)",
"description":"Compare Number('-' + 'any_number') with -Number('any_number')",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A5_T3.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlI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K",
"commentary":"The MV of StrUnsignedDecimalLiteral::: Infinity is 10<sup><small>10000</small></sup>\n(a value so large that it will round to <b><tt>+&infin;</tt></b>)",
"description":"Compare Number('Infinity') with Number.POSITIVE_INFINITY, 10e10000, 10E10000 and Number(\"10e10000\")",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A6_T1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUaGUgTVYgb2YgU3RyVW5zaWduZWREZWNpbWFsTGl0ZXJhbDo6OiBJbmZpbml0eSBpcyAxMDxzdXA+PHNtYWxsPjEwMDAwPC9zbWFsbD48L3N1cD4KICogKGEgdmFsdWUgc28gbGFyZ2UgdGhhdCBpdCB3aWxsIHJvdW5kIHRvIDxiPjx0dD4rJmluZmluOzwvdHQ+PC9iPikKICoKICogQHBhdGggY2gwOS85LjMvOS4zLjEvUzkuMy4xX0E2X1QyLmpzCiAqIEBkZXNjcmlwdGlvbiBDb21wYXJlIE51bWJlcignSW5maScrJ25pdHknKSB3aXRoIE51bWJlci5QT1NJVElWRV9JTkZJTklUWSwgMTBlMTAwMDAsIDEwRTEwMDAwIGFuZCBOdW1iZXIoIjEwZTEwMDAwIikKICovCgpmdW5jdGlvbiBkeW5hU3RyaW5nKHMxLCBzMil7CiAgcmV0dXJuIFN0cmluZyhzMSkrU3RyaW5nKHMyKTsKfQoKCi8vIENIRUNLIzEKaWYgKE51bWJlcihkeW5hU3RyaW5nKCJJbmZpIiwgIm5pdHkiKSkgIT09IE51bWJlci5QT1NJVElWRV9JTkZJTklUWSkgewogICRFUlJPUignIzE6IE51bWJlcigiSW5maSIrIm5pdHkiKSA9PT0gTnVtYmVyLlBPU0lUSVZFX0lORklOSVRZJyk7Cn0KCi8vIENIRUNLIzIKaWYgKE51bWJlcihkeW5hU3RyaW5nKCJJbmZpIiwgIm5pdHkiKSkgIT09IDEwZTEwMDAwKSB7CiAgJEVSUk9SKCcjMjogTnVtYmVyKCJJbmZpIisibml0eSIpID09PSAxMGUxMDAwMCcpOwp9CgovLyBDSEVDSyMzCmlmIChOdW1iZXIoZHluYVN0cmluZygiSW5maSIsICJuaXR5IikpICE9PSAxMEUxMDAwMCkgewogICRFUlJPUignIzM6IE51bWJlcigiSW5maSIrIm5pdHkiKSA9PT0gMTBFMTAwMDAnKTsKfQoKLy8gQ0hFQ0sjNAppZiAoTnVtYmVyKGR5bmFTdHJpbmcoIkluZmkiLCAibml0eSIpKSAhPT0gTnVtYmVyKCIxMGUxMDAwMCIpKSB7CiAgJEVSUk9SKCcjNDogTnVtYmVyKCJJbmZpIisibml0eSIpID09PSBOdW1iZXIoIjEwZTEwMDAwIiknKTsKfQoK",
"commentary":"The MV of StrUnsignedDecimalLiteral::: Infinity is 10<sup><small>10000</small></sup>\n(a value so large that it will round to <b><tt>+&infin;</tt></b>)",
"description":"Compare Number('Infi'+'nity') with Number.POSITIVE_INFINITY, 10e10000, 10E10000 and Number(\"10e10000\")",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A6_T2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUaGUgTVYgb2YgU3RyVW5zaWduZWREZWNpbWFsTGl0ZXJhbDo6OiBEZWNpbWFsRGlnaXRzLiBEZWNpbWFsRGlnaXRzCiAqIGlzIHRoZSBNViBvZiB0aGUgZmlyc3QgRGVjaW1hbERpZ2l0cyBwbHVzIHRoZSBNViBvZiB0aGUgc2Vjb25kIERlY2ltYWxEaWdpdHMgdGltZXMKICogMTA8c3VwPjxzbWFsbD4tbjwvc21hbGw+PC9zdXA+LCB3aGVyZSBuIGlzIHRoZSBudW1iZXIgb2YgY2hhcmFjdGVycyBpbiB0aGUgc2Vjb25kIERlY2ltYWxEaWdpdHMKICoKICogQHBhdGggY2gwOS85LjMvOS4zLjEvUzkuMy4xX0E3LmpzCiAqIEBkZXNjcmlwdGlvbiBDb21wYXJlIE51bWJlcignMTIzNC41Njc4Jykgd2l0aCBOdW1iZXIoJzEyMzQnKSsoKygnNTY3OCcpKjFlLTQpCiAqLwoKLy8gQ0hFQ0sjMQppZiAoTnVtYmVyKCIxMjM0LjU2NzgiKSAhPT0gTnVtYmVyKCIxMjM0IikrKCsoIjU2NzgiKSoxZS00KSkgIHsKICAkRVJST1IoJyMxOiBOdW1iZXIoIjEyMzQuNTY3OCIpID09PSBOdW1iZXIoIjEyMzQiKSsoKygiNTY3OCIpKjFlLTQpJyk7Cn0KCg==",
"commentary":"The MV of StrUnsignedDecimalLiteral::: DecimalDigits. DecimalDigits\nis the MV of the first DecimalDigits plus the MV of the second DecimalDigits times\n10<sup><small>-n</small></sup>, where n is the number of characters in the second DecimalDigits",
"description":"Compare Number('1234.5678') with Number('1234')+(+('5678')*1e-4)",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A7.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUaGUgTVYgb2YgU3RyVW5zaWduZWREZWNpbWFsTGl0ZXJhbDo6OiBEZWNpbWFsRGlnaXRzLiBFeHBvbmVudFBhcnQKICogaXMgdGhlIE1WIG9mIERlY2ltYWxEaWdpdHMgdGltZXMgMTA8c3VwPjxzbWFsbD5lPC9zbWFsbD48L3N1cD4gLCB3aGVyZSBlIGlzIHRoZSBNViBvZiBFeHBvbmVudFBhcnQKICoKICogQHBhdGggY2gwOS85LjMvOS4zLjEvUzkuMy4xX0E4LmpzCiAqIEBkZXNjcmlwdGlvbiBDb21wYXJlIE51bWJlcignMTIzNGU1JykgYW5kIE51bWJlcignMTIzNC5lNScpIHdpdGggTnVtYmVyKCcxMjM0JykqMWU1CiAqLwoKLy8gQ0hFQ0sjMQppZiAoTnVtYmVyKCIxMjM0ZTUiKSAhPT0gTnVtYmVyKCIxMjM0IikqMWU1KSAgewogICRFUlJPUignIzE6IE51bWJlcigiMTIzNGU1IikgPT09IE51bWJlcigiMTIzNCIpKjFlNScpOwp9CgovLyBDSEVDSyMyCmlmIChOdW1iZXIoIjEyMzQuZTUiKSAhPT0gKygiMTIzNCIpKjFlNSkgIHsKICAkRVJST1IoJyMyOiBOdW1iZXIoIjEyMzQuZTUiKSA9PT0gKygiMTIzNCIpKjFlNScpOwp9Cgo=",
"commentary":"The MV of StrUnsignedDecimalLiteral::: DecimalDigits. ExponentPart\nis the MV of DecimalDigits times 10<sup><small>e</small></sup> , where e is the MV of ExponentPart",
"description":"Compare Number('1234e5') and Number('1234.e5') with Number('1234')*1e5",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A8.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUaGUgTVYgb2YgU3RyVW5zaWduZWREZWNpbWFsTGl0ZXJhbDo6OiBEZWNpbWFsRGlnaXRzLiBEZWNpbWFsRGlnaXRzIEV4cG9uZW50UGFydAogKiBpcyAodGhlIE1WIG9mIHRoZSBmaXJzdCBEZWNpbWFsRGlnaXRzIHBsdXMgKHRoZSBNViBvZiB0aGUgc2Vjb25kIERlY2ltYWxEaWdpdHMgdGltZXMKICogMTA8c3VwPjxzbWFsbD4tbjwvc21hbGw+PC9zdXA+KSkgdGltZXMgMTA8c3VwPjxzbWFsbD5lPC9zbWFsbD48L3N1cD4sIHdoZXJlIG4gaXMgdGhlIG51bWJlcgogKiBvZiBjaGFyYWN0ZXJzIGluIHRoZSBzZWNvbmQgRGVjaW1hbERpZ2l0cyBhbmQgZSBpcyB0aGUgTVYgb2YgRXhwb25lbnRQYXJ0CiAqCiAqIEBwYXRoIGNoMDkvOS4zLzkuMy4xL1M5LjMuMV9BOS5qcwogKiBAZGVzY3JpcHRpb24gQ29tcGFyZSBOdW1iZXIoJzEyMzQuNTY3OGU5Jykgd2l0aCAoTnVtYmVyKCcxMjM0JykrKE51bWJlcignNTY3OCcpKjFlLTQpKSoxZTksCiAqIGFuZCArKCcxMjM0LjU2NzhlLTknKSB3aXRoIChOdW1iZXIoJzEyMzQnKSsoTnVtYmVyKCc1Njc4JykqMWUtNCkpKjFlLTkKICovCgovLyBDSEVDSyMxCmlmIChOdW1iZXIoIjEyMzQuNTY3OGU5IikgIT09IChOdW1iZXIoIjEyMzQiKSsoTnVtYmVyKCI1Njc4IikqMWUtNCkpKjFlOSkgIHsKICAkRVJST1IoJyMxOiBOdW1iZXIoIjEyMzQuNTY3OGU5IikgPT09IChOdW1iZXIoIjEyMzQiKSsoTnVtYmVyKCI1Njc4IikqMWUtNCkpKjFlOScpOwp9CgovLyBDSEVDSyMyCmlmICgrKCIxMjM0LjU2NzhlLTkiKSAhPT0gKE51bWJlcigiMTIzNCIpKyhOdW1iZXIoIjU2NzgiKSoxZS00KSkqMWUtOSkgIHsKICAkRVJST1IoJyMyOiArKCIxMjM0LjU2NzhlLTkiKSA9PT0gKE51bWJlcigiMTIzNCIpKyhOdW1iZXIoIjU2NzgiKSoxZS00KSkqMWUtOScpOwp9Cgo=",
"commentary":"The MV of StrUnsignedDecimalLiteral::: DecimalDigits. DecimalDigits ExponentPart\nis (the MV of the first DecimalDigits plus (the MV of the second DecimalDigits times\n10<sup><small>-n</small></sup>)) times 10<sup><small>e</small></sup>, where n is the number\nof characters in the second DecimalDigits and e is the MV of ExponentPart",
"description":"Compare Number('1234.5678e9') with (Number('1234')+(Number('5678')*1e-4))*1e9,\nand +('1234.5678e-9') with (Number('1234')+(Number('5678')*1e-4))*1e-9",
"path":"TestCases/ch09/9.3/9.3.1/S9.3.1_A9.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBJZiBUb051bWJlcih2YWx1ZSkgaXMgTmFOLCBUb0ludGVnZXIodmFsdWUpIHJldHVybnMgKzAKICoKICogQHBhdGggY2gwOS85LjQvUzkuNF9BMS5qcwogKiBAZGVzY3JpcHRpb24gQ2hlY2sgd2hhdCBwb3NpdGlvbiBpcyBkZWZpbmVkIGJ5IE51bWJlci5OYU4gaW4gc3RyaW5nICJhYmMiOiAiYWJjIi5jaGFyQXQoTnVtYmVyLk5hTikKICovCgovLyBDSEVDSyMxCmlmICgiYWJjIi5jaGFyQXQoTnVtYmVyLk5hTikgIT09ICJhIikgewogICRFUlJPUignIzE6ICJhYmMiLmNoYXJBdChOdW1iZXIuTmFOKSA9PT0gImEiLiBBY3R1YWw6ICcgKyAoImFiYyIuY2hhckF0KE51bWJlci5OYU4pKSk7Cn0KCi8vIENIRUNLIzIKaWYgKCJhYmMiLmNoYXJBdCgieCIpICE9PSAiYSIpIHsKICAkRVJST1IoJyMyOiAiYWJjIi5jaGFyQXQoIngiKSA9PT0gImEiLiBBY3R1YWw6ICcgKyAoImFiYyIuY2hhckF0KCJ4IikpKTsKfQoK",
"commentary":"If ToNumber(value) is NaN, ToInteger(value) returns +0",
"description":"Check what position is defined by Number.NaN in string \"abc\": \"abc\".charAt(Number.NaN)",
"path":"TestCases/ch09/9.4/S9.4_A1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBJZiBUb051bWJlcih2YWx1ZSkgaXMgKzAsIC0wLCArSW5maW5pdHksIG9yIC1JbmZpbml0eSwKICogcmV0dXJuIFRvTnVtYmVyKHZhbHVlKQogKgogKiBAcGF0aCBjaDA5LzkuNC9TOS40X0EyLmpzCiAqIEBkZXNjcmlwdGlvbiBDaGVjayB3aGF0IHBvc2l0aW9uIGlzIGRlZmluZWQgYnkgTnVtYmVyLk5hTiBpbiBzdHJpbmcgImFiYyI6ICJhYmMiLmNoYXJBdChOdW1iZXIuTmFOKQogKi8KCi8vIENIRUNLIzEKaWYgKCJhYmMiLmNoYXJBdCgwLjApICE9PSAiYSIpIHsKICAkRVJST1IoJyMxOiAiYWJjIi5jaGFyQXQoMC4wKSA9PT0gImEiLiBBY3R1YWw6ICcgKyAoImFiYyIuY2hhckF0KDAuMCkpKTsKfQoKLy8gQ0hFQ0sjMgppZiAoImFiYyIuY2hhckF0KC0wLjApICE9PSAiYSIpIHsKICAkRVJST1IoJyMyOiAiYWJjIi5jaGFyQXQoLTAuMCkgPT09ICJhIi4gQWN0dWFsOiAnICsgKCJhYmMiLmNoYXJBdCgtMC4wKSkpOwp9Cgo=",
"commentary":"If ToNumber(value) is +0, -0, +Infinity, or -Infinity,\nreturn ToNumber(value)",
"description":"Check what position is defined by Number.NaN in string \"abc\": \"abc\".charAt(Number.NaN)",
"path":"TestCases/ch09/9.4/S9.4_A2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgVG9JbnRlZ2VyKHZhbHVlKSBjb252ZXJzaW9uIGlzIHRoZSByZXN1bHQgb2YgY29tcHV0aW5nCiAqIHNpZ24oVG9OdW1iZXIodmFsdWUpKSAqIGZsb29yKGFicyhUb051bWJlcih2YWx1ZSkpKQogKgogKiBAcGF0aCBjaDA5LzkuNC9TOS40X0EzX1QxLmpzCiAqIEBkZXNjcmlwdGlvbiBGb3IgdGVzdGluZyBjb25zdHJ1Y3RvciBEYXRlKE51bWJlcikgaXMgdXNlZAogKi8KCi8vIENIRUNLIzEKdmFyIGQxID0gbmV3IERhdGUoNi41NDMyMSk7CmlmIChkMS52YWx1ZU9mKCkgIT09IDYpIHsKICAkRVJST1IoJyMxOiB2YXIgZDEgPSBuZXcgRGF0ZSg2LjU0MzIxKTsgZDEudmFsdWVPZigpID09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or(abs(ToNumber(value)))",
"description":"For testing constructor Date(Number) is used",
"path":"TestCases/ch09/9.4/S9.4_A3_T1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgVG9JbnRlZ2VyKHZhbHVlKSBjb252ZXJzaW9uIGlzIHRoZSByZXN1bHQgb2YgY29tcHV0aW5nCiAqIHNpZ24oVG9OdW1iZXIodmFsdWUpKSAqIGZsb29yKGFicyhUb051bWJlcih2YWx1ZSkpKQogKgogKiBAcGF0aCBjaDA5LzkuNC9TOS40X0EzX1QyLmpzCiAqIEBkZXNjcmlwdGlvbiBGb3IgdGVzdGluZyBjb25zdHJ1Y3RvciBEYXRlKE5hTiwgSW5maW5pdHksIEluZmluaXR5LCArMCBhbmQgLTApIGlzIHVzZWQKICovCgovLyBDSEVDSyMxCnZhciBkMSA9IG5ldyBEYXRlKE51bWJlci5OYU4pOwppZiAoIWlzTmFOKGQxLnZhbHVlT2YoKSkpIHsKICAkRVJST1IoJyMxOiB2YXIgZDEgPSBuZXcgRGF0ZShOdW1iZXIuTmFOKTsgZDEudmFsdWVPZigpID09PSBOdW1iZXIuTmFOOycpOwp9CgovLyBDSEVDSyMyCnZhciBkMiA9IG5ldyBEYXRlKEluZmluaXR5KTsKaWYgKCFpc05hTihkMi52YWx1ZU9mKCkpKSB7CiAgJEVSUk9SKCcjMjogdmFyIGQyID0gbmV3IERhdGUoSW5maW5pdHkpOyBkMi52YWx1ZU9mKCkgPT09IE51bWJlci5OYU47Jyk7Cn0KCi8vIENIRUNLIzMKdmFyIGQzID0gbmV3IERhdGUoLUluZmluaXR5KTsKaWYgKCFpc05hTihkMy52YWx1ZU9mKCkpKSB7CiAgJEVSUk9SKCcjMzogdmFyIGQzID0gbmV3IERhdGUoLUluZmluaXR5KTsgZDMudmFsdWVPZigpID09PSBOdW1iZXIuTmFOOycpOwp9CgovLyBDSEVDSyM0CnZhciBkNCA9IG5ldyBEYXRlKDApOwppZiAoZDQudmFsdWVPZigpICE9PSAwKSB7CiAgJEVSUk9SKCcjNDogdmFyIGQ0ID0gbmV3IERhdGUoMCk7IGQ0LnZhbHVlT2YoKSA9PT0gMDsnKTsKfQoKLy8gQ0hFQ0sjNQp2YXIgZDUgPSBuZXcgRGF0ZSgtMCk7CmlmIChkNS52YWx1ZU9mKCkgIT09IC0wKSB7CiAgJEVSUk9SKCcjNTogdmFyIGQ1ID0gbmV3IERhdGUoLTApOyBkNS52YWx1ZU9mKCkgPT09IC0wOycpOwp9Cgo=",
"commentary":"Result of ToInteger(value) conversion is the result of computing\nsign(ToNumber(value)) * floor(abs(ToNumber(value)))",
"description":"For testing constructor Date(NaN, Infinity, Infinity, +0 and -0) is used",
"path":"TestCases/ch09/9.4/S9.4_A3_T2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBJZiB2YWx1ZSBpcyBOYU4sICswLCAtMCwgK0luZmluaXR5LCBvciAtSW5maW5pdHksIHJldHVybiArMAogKgogKiBAcGF0aCBjaDA5LzkuNS9TOS41X0ExX1QxLmpzCiAqIEBkZXNjcmlwdGlvbiBGb3IgdGVzdGluZyB1c2Ugb3BlcmF0b3IgPDwwCiAqLwoKLy8gQ0hFQ0sjMQppZiAoKE51bWJlci5OYU4gPDwgMCkgIT09ICswKSB7CiAgJEVSUk9SKCcjMS4xOiAoTnVtYmVyLk5hTiA8PCAwKSA9PT0gMC4gQWN0dWFsOiAnICsgKChOdW1iZXIuTmFOIDw8IDApKSk7Cn0gZWxzZSBpZiAoMS8oTnVtYmVyLk5hTiA8PCAwKSAhPT0gTnVtYmVyLlBPU0lUSVZFX0lORklOSVRZKSB7CiAgJEVSUk9SKCcjMS4yOiAoTnVtYmVyLk5hTiA8PCAwKSA9PT0gKzAu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SU5JVFkgPDwgMCkgIT09IE51bWJlci5QT1NJVElWRV9JTkZJTklUWSkgewogICRFUlJPUignIzUuMjogKE51bWJlci5QT1NJVElWRV9JTkZJTklUWSA8PCAwKSA9PT0gKzAuIEFjdHVhbDogLTAnKTsKfQoKLy8gQ0hFQ0sjNgppZiAoKE51bWJlci5ORUdBVElWRV9JTkZJTklUWSA8PCAwKSAhPT0gKzApIHsKICAkRVJST1IoIiM2LjE6IChOdW1iZXIuTkVHQVRJVkVfSU5GSU5JVFkgPDwgMCkgPT09IDAiKTsKfSBlbHNlIGlmICgxLyhOdW1iZXIuTkVHQVRJVkVfSU5GSU5JVFkgPDwgMCkgIT09IE51bWJlci5QT1NJVElWRV9JTkZJTklUWSkgewogICRFUlJPUigiIzYuMjogKE51bWJlci5ORUdBVElWRV9JTkZJTklUWSA8PCAwKSA9PT0gKzAuIEFjdHVhbDogLTAiKTsKfQoK",
"commentary":"If value is NaN, +0, -0, +Infinity, or -Infinity, return +0",
"description":"For testing use operator <<0",
"path":"TestCases/ch09/9.5/S9.5_A1_T1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUb0ludDMyIHJldHVybnMgdmFsdWVzIGJldHdlZW4gLTJeMzEgYW5kIDJeMzEtMQogKgogKiBAcGF0aCBjaDA5LzkuNS9TOS41X0EyLjFfVDEuanMKICogQGRlc2NyaXB0aW9uIENvbnZlcnRpbmcgc29tZSBudW1iZXJzLCB3aGljaCBhcmUgaW5cb3V0c2lkZSBvZiBJbnQzMiBzY29wZXMsIHdpdGggPDwwIG9wZXJhdG9yCiAqLwoKLy8gQ0hFQ0sjMQppZiAoKC0yMTQ3NDgzNjQ3IDw8IDApICE9PSAtMjE0NzQ4MzY0NykgewogICRFUlJPUignIzE6ICgtMjE0NzQ4MzY0NyA8PCAwKSA9PT0gLTIxNDc0ODM2NDcuIEFjdH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NjQ4IDw8IDApID09PSAtMjE0NzQ4MzY0OC4gQWN0dWFsOiAnICsgKCgyMTQ3NDgzNjQ4IDw8IDApKSk7Cn0KCi8vIENIRUNLIzgKaWYgKCg0Mjk0OTY3Mjk2IDw8IDApICE9PSAwKSB7CiAgJEVSUk9SKCcjODogKDQyOTQ5NjcyOTYgPDwgMCkgPT09IDAuIEFjdHVhbDogJyArICgoNDI5NDk2NzI5NiA8PCAwKSkpOwp9Cgo=",
"commentary":"ToInt32 returns values between -2^31 and 2^31-1",
"description":"Converting some numbers, which are in\\outside of Int32 scopes, with <<0 operator",
"path":"TestCases/ch09/9.5/S9.5_A2.1_T1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUb0ludDMyIHJldHVybnMgdmFsdWVzIGJldHdlZW4gLTJeMzEgYW5kIDJeMzEtMQogKgogKiBAcGF0aCBjaDA5LzkuNS9TOS41X0EyLjFfVDIuanMKICogQGRlc2NyaXB0aW9uIENvbnZlcnRpbmcgc29tZSBudW1iZXJzLCB3aGljaCBhcmUgaW5cb3V0c2lkZSBvZiBJbnQzMiBzY29wZXMsIHdpdGggIH4gb3BlcmF0b3IKICovCgovLyBDSEVDSyMxCmlmICh+LTIxNDc0ODM2NDkgIT09IH4yMTQ3NDgzNjQ3KSB7CiAgJEVSUk9SKCcjMTogfi0yMTQ3NDgzNjQ5ID09PSB+MjE0NzQ4MzY0NycpOwp9CgovLyBDSEVDSyMyCmlmICh+LTQyOTQ5NjcyOTYgIT09IH4wKSB7CiAgJEVSUk9SKCcjMjogfi00Mjk0OTY3Mjk2ID09PSB+MCcpOwp9CgovLyBDSEVDSyMzCmlmICh+MjE0NzQ4MzY0OCAhPT0gfi0yMTQ3NDgzNjQ4KSB7CiAgJEVSUk9SKCcjMzogfjIxNDc0ODM2NDggPT09IH4tMjE0NzQ4MzY0OCcpOwp9CgovLyBDSEVDSyM0CmlmICh+NDI5NDk2NzI5NiAhPT0gfjApIHsKICAkRVJST1IoJyM0OiB+NDI5NDk2NzI5NiA9PT0gfjAnKTsKfQoK",
"commentary":"ToInt32 returns values between -2^31 and 2^31-1",
"description":"Converting some numbers, which are in\\outside of Int32 scopes, with ~ operator",
"path":"TestCases/ch09/9.5/S9.5_A2.1_T2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBDb21wdXRlIHJlc3VsdCBtb2R1bG8gMl4zMgogKgogKiBAcGF0aCBjaDA5LzkuNS9TOS41X0EyLjJfVDEuanMKICogQGRlc2NyaXB0aW9uIFVzZSBvcGVyYXRvciA8PDAKICovCgovLyBDSEVDSyMxCmlmICgoLTIxNDc0ODM2NDcgPDwgMCkgIT09IC0yMTQ3NDgzNjQ3KSB7CiAgJEVSUk9SKCcjMTogKC0yMTQ3NDgzNjQ3IDw8IDApID09PSAtMjE0NzQ4MzY0Ny4gQWN0dWFsOiAnICsgKCgtMjE0NzQ4MzY0NyA8PCAwKSkpOwp9CgovLyBDSEVDSyMyCmlmICgoLTIxNDc0ODM2NDggPDwgMCkgIT09IC0yMTQ3NDgzNjQ4KSB7CiAgJEVSUk9SKCcjMjogKC0yMTQ3NDgzNjQ4IDw8IDApID09PSAtMjE0NzQ4MzY0OC4gQWN0dWFsOiAnICsgKCgtMjE0NzQ4MzY0OCA8PCAwKSkpOwp9CgovLyBDSEVDSyMzCmlmICgoLTIxNDc0ODM2NDkgPDwgMCkgIT09IDIxNDc0ODM2NDcpIHsKICAkRVJST1IoJyMzOiAoLTIxNDc0ODM2NDkgPDwgMCkgPT09IDIxNDc0ODM2NDcuIEFjdHVhbDogJyArICgoLTIxNDc0ODM2NDkgPDwgMCkpKTsKfQoKLy8gQ0hFQ0sjNAppZiAoKDQyOTQ5NjcyOTUgPDwgMCkgIT09IC0x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gQWN0dWFsOiAnICsgKCg0Mjk0OTY3Mjk1IDw8IDApKSk7Cn0KCi8vIENIRUNLIzUKaWYgKCg0Mjk0OTY3Mjk2IDw8IDApICE9PSAwKSB7CiAgJEVSUk9SKCcjNTogKDQyOTQ5NjcyOTYgPDwgMCkgPT09IDAuIEFjdHVhbDogJyArICgoNDI5NDk2NzI5NiA8PCAwKSkpOwp9CgovLyBDSEVDSyM2CmlmICgoNDI5NDk2NzI5NyA8PCAwKSAhPT0gMSkgewogICRFUlJPUignIzY6ICg0Mjk0OTY3Mjk3IDw8IDApID09PSAxLiBBY3R1YWw6ICcgKyAoKDQyOTQ5NjcyOTcgPDwgMCkpKTsKfQoKCgo=",
"commentary":"If result is greater than or equal to 2^31, return result -2^32",
"description":"Use operator <<0",
"path":"TestCases/ch09/9.5/S9.5_A2.3_T1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBJZiByZXN1bHQgaXMgZ3JlYXRlciB0aGFuIG9yIGVxdWFsIHRvIDJeMzEsIHJldHVybiByZXN1bHQgLTJeMzIKICoKICogQHBhdGggY2gwOS85LjUvUzkuNV9BMi4zX1QyLmpzCiAqIEBkZXNjcmlwdGlvbiBVc2Ugb3BlcmF0b3IgfgogKi8KCi8vIENIRUNLIzEKaWYgKH4yMTQ3NDgzNjQ3ICE9PSAtMjE0NzQ4MzY0OCkgewogICRFUlJPUignIzE6IH4yMTQ3NDgzNjQ3ID09PT0gLTIxNDc0ODM2NDgpJyk7Cn0KCi8vIENIRUNLIzIKaWYgKH4yMTQ3NDgzNjQ4ICE9PSB+LTIxNDc0ODM2NDgpIHsKICAkRVJST1IoJyMyOiB+MjE0NzQ4MzY0OCA9PT09IH4tMjE0NzQ4MzY0OCknKTsKfQoKLy8gQ0hFQ0sjMwppZiAofjIxNDc0ODM2NDkgIT09IH4tMjE0NzQ4MzY0NykgewogICRFUlJPUignIzM6IH4yMTQ3NDgzNjQ5ID09PT0gfi0yMTQ3NDgzNjQ3KScpOwp9CgovLyBDSEVDSyM0CmlmICh+NDI5NDk2NzI5NSAhPT0gfi0xKSB7CiAgJEVSUk9SKCcjNDogfjQyOTQ5NjcyOTUgPT09PSB+LTEpJyk7Cn0KCi8vIENIRUNLIzUKaWYgKH40Mjk0OTY3Mjk2ICE9PSB+MCkgewogICRFUlJPUignIzU6IH40Mjk0OTY3Mjk2ID09PT0gfjApJyk7Cn0KCi8vIENIRUNLIzYKaWYgKH40Mjk0OTY3Mjk3ICE9PSB+MSkgewogICRFUlJPUignIzY6IH40Mjk0OTY3Mjk3ID09PT0gfjEpJyk7Cn0KCg==",
"commentary":"If result is greater than or equal to 2^31, return result -2^32",
"description":"Use operator ~",
"path":"TestCases/ch09/9.5/S9.5_A2.3_T2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBPcGVyYXRvciB1c2VzIFRvTnVtYmVyCiAqCiAqIEBwYXRoIGNoMDkvOS41L1M5LjVfQTMuMV9UMS5qcwogKiBAZGVzY3JpcHRpb24gVHlwZSh4KSBpcyBCb29sZWFuCiAqLwoKLy8gQ0hFQ0sjMQppZiAoKG5ldyBCb29sZWFuKHRydWUpIDw8IDApICE9PSAxKSB7CiAgJEVSUk9SKCcjMTogKG5ldyBCb29sZWFuKHRydWUpIDw8IDApID09PSAxLiBBY3R1YWw6ICcgKyAoKG5ldyBCb29sZWFuKHRydWUpIDw8IDApKSk7Cn0KCi8vIENIRUNLIzIKaWYgKChmYWxzZSA8PCAwKSAhPT0gMCkgewogICRFUlJPUignIzI6IChmYWxzZSA8PCAwKSA9PT0gMC4gQWN0dWFsOiAnICsgKChmYWxzZSA8PCAwKSkpOwp9Cgo=",
"commentary":"Operator uses ToNumber",
"description":"Type(x) is Boolean",
"path":"TestCases/ch09/9.5/S9.5_A3.1_T1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBPcGVyYXRvciB1c2VzIFRvTnVtYmVyCiAqCiAqIEBwYXRoIGNoMDkvOS41L1M5LjVfQTMuMV9UMi5qcwogKiBAZGVzY3JpcHRpb24gVHlwZSh4KSBpcyBOdW1iZXIKICovCgovLyBDSEVDSyMxCmlmICgobmV3IE51bWJlcigxKSA8PCAwKSAhPT0gMSkgewogICRFUlJPUignIzE6IChuZXcgTnVtYmVyKDEpIDw8IDApID09PSAxLiBBY3R1YWw6ICcgKyAoKG5ldyBOdW1iZXIoMSkgPDwgMCkpKTsKfQoKLy8gQ0hFQ0sjMgppZiAoKC0xLjIzNCA8PCAwKSAhPT0gLTEpIHsKICAkRVJST1IoJyMyOiAoLTEuMjM0IDw8IDApID09PSAtMS4gQWN0dWFsOiAnICsgKCgtMS4yMzQgPDwgMCkpKTsKfQoK",
"commentary":"Operator uses ToNumber",
"description":"Type(x) is Number",
"path":"TestCases/ch09/9.5/S9.5_A3.1_T2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBPcGVyYXRvciB1c2VzIFRvTnVtYmVyCiAqCiAqIEBwYXRoIGNoMDkvOS41L1M5LjVfQTMuMV9UMy5qcwogKiBAZGVzY3JpcHRpb24gVHlwZSh4KSBpcyBTdHJpbmcKICovCgovLyBDSEVDSyMxCmlmICgobmV3IFN0cmluZygxKSA8PCAwKSAhPT0gMSkgewogICRFUlJPUignIzE6IChuZXcgU3RyaW5nKDEpIDw8IDApID09PSAxLiBBY3R1YWw6ICcgKyAoKG5ldyBTdHJpbmcoMSkgPDwgMCkpKTsKfQoKLy8gQ0hFQ0sjMgppZiAoKCItMS4yMzQiIDw8IDApICE9PSAtMSkgewogICRFUlJPUignIzI6ICgiLTEuMjM0IiA8PCAwKSA9PT0gLTEuIEFjdHVhbDogJyArICgoIi0xLjIzNCIgPDwgMCkpKTsKfQoK",
"commentary":"Operator uses ToNumber",
"description":"Type(x) is String",
"path":"TestCases/ch09/9.5/S9.5_A3.1_T3.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBPcGVyYXRvciB1c2VzIFRvTnVtYmVyCiAqCiAqIEBwYXRoIGNoMDkvOS41L1M5LjVfQTMuMV9UNC5qcwogKiBAZGVzY3JpcHRpb24gVHlwZSh4KSBpcyBPYmplY3QKICovCgovL0NIRUNLIzEKdmFyIG9iamVjdCA9IHt2YWx1ZU9mOiBmdW5jdGlvbigpIHtyZXR1cm4gMX19OwppZiAofm9iamVjdCAhPT0gfjEpIHsKICAkRVJST1IoJyMxOiB2YXIgb2JqZWN0ID0ge3ZhbHVlT2Y6IGZ1bmN0aW9uKCkge3JldHVybiAxfX07IH5vYmplY3QgPT09IH4xJyk7Cn0KCi8vQ0hFQ0sjMgp2YXIgb2JqZWN0ID0ge3ZhbHVlT2Y6IGZ1bmN0aW9uKCkge3JldHVybiAxfSwgdG9TdHJpbmc6IGZ1bmN0aW9uKCkge3JldHVybiAwfX07CmlmICh+b2JqZWN0ICE9PSB+MSkgewogICRFUlJPUignIzI6IHZhciBvYmplY3QgPSB7dmFsdWVPZjogZnVuY3Rpb24oKSB7cmV0dXJuIDF9LCB0b1N0cmluZzogZnVuY3Rpb24oKSB7cmV0dXJuIDB9fTsgfm9iamVjdCA9PT0gfjEnKTsKfSAKCi8vQ0hFQ0sjMwp2YXIgb2JqZWN0ID0ge3ZhbHVlT2Y6IGZ1bmN0aW9uKCkge3JldHVybiAxfSwgdG9TdHJpbmc6IGZ1bmN0aW9uKCkge3JldHVybiB7fX19OwppZiAofm9iamVj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0dXJuIHt9fSwgdG9TdHJpbmc6IGZ1bmN0aW9uKCkge3JldHVybiB7fX19OwogIH5vYmplY3Q7CiAgJEVSUk9SKCcjOC4xOiB2YXIgb2JqZWN0ID0ge3ZhbHVlT2Y6IGZ1bmN0aW9uKCkge3JldHVybiB7fX0sIHRvU3RyaW5nOiBmdW5jdGlvbigpIHtyZXR1cm4ge319fTsgfm9iamVjdCB0aHJvdyBUeXBlRXJyb3IuIEFjdHVhbDogJyArICh+b2JqZWN0KSk7Cn0gIApjYXRjaCAoZSkgewogIGlmICgoZSBpbnN0YW5jZW9mIFR5cGVFcnJvcikgIT09IHRydWUpIHsKICAgICRFUlJPUignIzguMjogdmFyIG9iamVjdCA9IHt2YWx1ZU9mOiBmdW5jdGlvbigpIHtyZXR1cm4ge319LCB0b1N0cmluZzogZnVuY3Rpb24oKSB7cmV0dXJuIHt9fX07IH5vYmplY3QgdGhyb3cgVHlwZUVycm9yLiBBY3R1YWw6ICcgKyAoZSkpOwogIH0gCn0KCg==",
"commentary":"Operator uses ToNumber",
"description":"Type(x) is Object",
"path":"TestCases/ch09/9.5/S9.5_A3.1_T4.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBPcGVyYXRvciB1c2VzIGZsb29yLCBhYnMKICoKICogQHBhdGggY2gwOS85LjUvUzkuNV9BMy4yX1QxLmpzCiAqIEBkZXNjcmlwdGlvbiBVc2Ugb3BlcmF0b3IgPDwwCiAqLwoKLy8gQ0hFQ0sjMQppZiAoKDEuMjM0NSA8PCAwKSAhPT0gMSkgewogICRFUlJPUignIzE6ICgxLjIzNDUgPDwgMCkgPT09IDEuIEFjdHVhbDogJyArICgoMS4yMzQ1IDw8IDApKSk7Cn0KCi8vIENIRUNLIzIKaWYgKCgtNS40MzIxIDw8IDApICE9PSAtNSkgewogICRFUlJPUignIzI6ICgtNS40MzIxIDw8IDApID09PSAtNS4gQWN0dWFsOiAnICsgKCgtNS40MzIxIDw8IDApKSk7Cn0KCg==",
"commentary":"Operator uses floor, abs",
"description":"Use operator <<0",
"path":"TestCases/ch09/9.5/S9.5_A3.2_T1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBPcGVyYXRvciB1c2VzIGZsb29yLCBhYnMKICoKICogQHBhdGggY2gwOS85LjUvUzkuNV9BMy4yX1QyLmpzCiAqIEBkZXNjcmlwdGlvbiBVc2Ugb3BlcmF0b3IgfgogKi8KCi8vIENIRUNLIzEKaWYgKH4xLjIzNDUgIT09IH4xKSB7CiAgJEVSUk9SKCcjMTogfjEuMjM0NSA9PT0gfjEpJyk7Cn0KCi8vIENIRUNLIzIKaWYgKH4tNS40MzIxICE9PSB+LTUpIHsKICAkRVJST1IoJyMyOiB+LTUuNDMyMSA9PT0gfi01KScpOwp9Cgo=",
"commentary":"Operator uses floor, abs",
"description":"Use operator ~",
"path":"TestCases/ch09/9.5/S9.5_A3.2_T2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBJZiB2YWx1ZSBpcyBOYU4sICswLCAtMCwgK0luZmluaXR5LCBvciAtSW5maW5pdHksIHJldHVybiArMAogKgogKiBAcGF0aCBjaDA5LzkuNi9TOS42X0ExLmpzCiAqIEBkZXNjcmlwdGlvbiBGb3IgdGVzdGluZyB1c2Ugb3BlcmF0b3IgPj4+MAogKi8KCi8vIENIRUNLIzEKaWYgKChOdW1iZXIuTmFOID4+PiAwKSAhPT0gKzApIHsKICAkRVJST1IoJyMxLjE6IChOdW1iZXIuTmFOID4+PiAwKSA9PT0gMC4gQWN0dWFsOiAnICsgKChOdW1iZXIuTmFOID4+PiAwKSkpOwp9IG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WRV9JTkZJTklUWSA+Pj4gMCkgPT09IDAuIEFjdHVhbDogJyArICgoTnVtYmVyLlBPU0lUSVZFX0lORklOSVRZID4+PiAwKSkpOwp9IGVsc2UgaWYgKDEvKE51bWJlci5QT1NJVElWRV9JTkZJTklUWSA+Pj4gMCkgIT09IE51bWJlci5QT1NJVElWRV9JTkZJTklUWSkgewogICRFUlJPUignIzUuMjogKE51bWJlci5QT1NJVElWRV9JTkZJTklUWSA+Pj4gMCkgPT09ICswLiBBY3R1YWw6IC0wJyk7Cn0KCi8vIENIRUNLIzYKaWYgKChOdW1iZXIuTkVHQVRJVkVfSU5GSU5JVFkgPj4+IDApICE9PSArMCkgewogICRFUlJPUigiIzYuMTogKE51bWJlci5ORUdBVElWRV9JTkZJTklUWSA+Pj4gMCkgPT09IDAiKTsKfSBlbHNlIGlmICgxLyhOdW1iZXIuTkVHQVRJVkVfSU5GSU5JVFkgPj4+IDApICE9PSBOdW1iZXIuUE9TSVRJVkVfSU5GSU5JVFkpIHsKICAkRVJST1IoIiM2LjI6IChOdW1iZXIuTkVHQVRJVkVfSU5GSU5JVFkgPj4+IDApID09PSArMC4gQWN0dWFsOiAtMCIpOwp9CgoKCg==",
"commentary":"If value is NaN, +0, -0, +Infinity, or -Infinity, return +0",
"description":"For testing use operator >>>0",
"path":"TestCases/ch09/9.6/S9.6_A1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUb1VpbnQzMiByZXR1cm5zIHZhbHVlcyBiZXR3ZWVuIDAgYW5kIDJeMzItMQogKgogKiBAcGF0aCBjaDA5LzkuNi9TOS42X0EyLjEuanMKICogQGRlc2NyaXB0aW9uIENvbnZlcnRpbmcgbnVtYmVycywgd2hpY2ggYXJlIGluXG91dHNpZGUgb2YgVWludDMyIHNjb3Blcywgd2l0aCA+Pj4wIG9wZXJhdG9yCiAqLwoKLy8gQ0hFQ0sjMQppZiAoKDAgPj4+IDApICE9PSAwKSB7CiAgJEVSUk9SKCcjMTogKDAgPj4+IDApID09PSAwLiBBY3R1YWw6ICcgKyAoKDAgPj4+IDApKSk7Cn0KCi8vIENIRUNLIzIKaWYgKCgxID4+PiAwKSAhPT0gMSkgewogICRFUlJPUignIzI6ICgxID4+PiAwKSA9PT0gMS4gQWN0dWFsOiAnICsgKCgxID4+PiAwKSkpOwp9CgovLyBDSEVDSyMzCmlmICgoLTEgPj4+IDApICE9PSA0Mjk0OTY3Mjk1KSB7CiAgJEVSUk9SKCcjMzogKC0xID4+PiAwKSA9PT0gNDI5NDk2NzI5NS4gQWN0dWFsOiAnICsgKCgtMSA+Pj4gMCkpKTsKfQoKLy8gQ0hFQ0sjNAppZiAoKDQyOTQ5NjcyOTUgPj4+IDApICE9PSA0Mjk0OTY3Mjk1KSB7CiAgJEVSUk9SKCcjNDogKDQyOTQ5NjcyOTUgPj4+IDApID09PSA0Mjk0OTY3Mjk1LiBBY3R1YWw6ICcgKyAoKDQyOTQ5NjcyOTUgPj4+IDApKSk7Cn0KCi8vIENIRUNLIzUKaWYgKCg0Mjk0OTY3Mjk0ID4+PiAwKSAhPT0gNDI5NDk2NzI5NCkgewogICRFUlJPUignIzU6ICg0Mjk0OTY3Mjk0ID4+PiAwKSA9PT0gNDI5NDk2NzI5NC4gQWN0dWFsOiAnICsgKCg0Mjk0OTY3Mjk0ID4+PiAwKSkpOwp9CgovLyBDSEVDSyM2CmlmICgoNDI5NDk2NzI5NiA+Pj4gMCkgIT09IDApIHsKICAkRVJST1IoJyM2OiAoNDI5NDk2NzI5NiA+Pj4gMCkgPT09IDAuIEFjdHVhbDogJyArICgoNDI5NDk2NzI5NiA+Pj4gMCkpKTsKfQoK",
"commentary":"ToUint32 returns values between 0 and 2^32-1",
"description":"Converting numbers, which are in\\outside of Uint32 scopes, with >>>0 operator",
"path":"TestCases/ch09/9.6/S9.6_A2.1.js"
},
{
"code":"Ly8gQ29weXJ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DU5MiA+Pj4gMCkgPT09IDAuIEFjdHVhbDogJyArICgoODU4OTkzNDU5MiA+Pj4gMCkpKTsKfQoKLy8gQ0hFQ0sjMTIKaWYgKCg4NTg5OTM0NTkzID4+PiAwKSAhPT0gMSkgewogICRFUlJPUignIzEyOiAoODU4OTkzNDU5MyA+Pj4gMCkgPT09IDEuIEFjdHVhbDogJyArICgoODU4OTkzNDU5MyA+Pj4gMCkpKTsKfQoK",
"commentary":"Compute result modulo 2^32",
"description":"Use operator >>>0",
"path":"TestCases/ch09/9.6/S9.6_A2.2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBPcGVyYXRvciB1c2VzIFRvTnVtYmVyCiAqCiAqIEBwYXRoIGNoMDkvOS42L1M5LjZfQTMuMV9UMS5qcwogKiBAZGVzY3JpcHRpb24gVHlwZSh4KSBpcyBCb29sZWFuCiAqLwoKLy8gQ0hFQ0sjMQppZiAoKG5ldyBCb29sZWFuKHRydWUpID4+PiAwKSAhPT0gMSkgewogICRFUlJPUignIzE6IChuZXcgQm9vbGVhbih0cnVlKSA+Pj4gMCkgPT09IDEuIEFjdHVhbDogJyArICgobmV3IEJvb2xlYW4odHJ1ZSkgPj4+IDApKSk7Cn0KCi8vIENIRUNLIzIKaWYgKChmYWxzZSA+Pj4gMCkgIT09IDApIHsKICAkRVJST1IoJyMyOiAoZmFsc2UgPj4+IDApID09PSAwLiBBY3R1YWw6ICcgKyAoKGZhbHNlID4+PiAwKSkpOwp9Cgo=",
"commentary":"Operator uses ToNumber",
"description":"Type(x) is Boolean",
"path":"TestCases/ch09/9.6/S9.6_A3.1_T1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBPcGVyYXRvciB1c2VzIFRvTnVtYmVyCiAqCiAqIEBwYXRoIGNoMDkvOS42L1M5LjZfQTMuMV9UMi5qcwogKiBAZGVzY3JpcHRpb24gVHlwZSh4KSBpcyBOdW1iZXIKICovCgovLyBDSEVDSyMxCmlmICgobmV3IE51bWJlcigxKSA+Pj4gMCkgIT09IDEpIHsKICAkRVJST1IoJyMxOiAobmV3IE51bWJlcigxKSA+Pj4gMCkgPT09IDEuIEFjdHVhbDogJyArICgobmV3IE51bWJlcigxKSA+Pj4gMCkpKTsKfQoKLy8gQ0hFQ0sjMgppZiAoKC0xLjIzNCA+Pj4gMCkgIT09IDQyOTQ5NjcyOTUpIHsKICAkRVJST1IoJyMyOiAoLTEuMjM0ID4+PiAwKSA9PT0gNDI5NDk2NzI5NS4gQWN0dWFsOiAnICsgKCgtMS4yMzQgPj4+IDApKSk7Cn0KCg==",
"commentary":"Operator uses ToNumber",
"description":"Type(x) is Number",
"path":"TestCases/ch09/9.6/S9.6_A3.1_T2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBPcGVyYXRvciB1c2VzIFRvTnVtYmVyCiAqCiAqIEBwYXRoIGNoMDkvOS42L1M5LjZfQTMuMV9UMy5qcwogKiBAZGVzY3JpcHRpb24gVHlwZSh4KSBpcyBTdHJpbmcKICovCgovLyBDSEVDSyMxCmlmICgobmV3IFN0cmluZygxKSA+Pj4gMCkgIT09IDEpIHsKICAkRVJST1IoJyMxOiAobmV3IFN0cmluZygxKSA+Pj4gMCkgPT09IDEuIEFjdHVhbDogJyArICgobmV3IFN0cmluZygxKSA+Pj4gMCkpKTsKfQoKLy8gQ0hFQ0sjMgppZiAoKCItMS4yMzQiID4+PiAwKSAhPT0gNDI5NDk2NzI5NSkgewogICRFUlJPUignIzI6ICgiLTEuMjM0IiA+Pj4gMCkgPT09IDQyOTQ5NjcyOTUuIEFjdHVhbDogJyArICgoIi0x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0ge3ZhbHVlT2Y6IGZ1bmN0aW9uKCkge3Rocm93ICJlcnJvciJ9LCB0b1N0cmluZzogZnVuY3Rpb24oKSB7cmV0dXJuIDF9fTsgb2JqZWN0IHRocm93ICJlcnJvciIuIEFjdHVhbDogJyArIChlKSk7CiAgfSAKfQoKLy9DSEVDSyM4CnRyeSB7CiAgdmFyIG9iamVjdCA9IHt2YWx1ZU9mOiBmdW5jdGlvbigpIHtyZXR1cm4ge319LCB0b1N0cmluZzogZnVuY3Rpb24oKSB7cmV0dXJuIHt9fX07CiAgb2JqZWN0ID4+PiAwOwogICRFUlJPUignIzguMTogdmFyIG9iamVjdCA9IHt2YWx1ZU9mOiBmdW5jdGlvbigpIHtyZXR1cm4ge319LCB0b1N0cmluZzogZnVuY3Rpb24oKSB7cmV0dXJuIHt9fX07IG9iamVjdCB0aHJvdyBUeXBlRXJyb3IuIEFjdHVhbDogJyArIChvYmplY3QgPj4+IDApKTsKfSAgCmNhdGNoIChlKSB7CiAgaWYgKChlIGluc3RhbmNlb2YgVHlwZUVycm9yKSAhPT0gdHJ1ZSkgewogICAgJEVSUk9SKCcjOC4yOiB2YXIgb2JqZWN0ID0ge3ZhbHVlT2Y6IGZ1bmN0aW9uKCkge3JldHVybiB7fX0sIHRvU3RyaW5nOiBmdW5jdGlvbigpIHtyZXR1cm4ge319fTsgb2JqZWN0IHRocm93IFR5cGVFcnJvci4gQWN0dWFsOiAnICsgKGUpKTsKICB9IAp9Cgo=",
"commentary":"Operator uses ToNumber",
"description":"Type(x) is Object",
"path":"TestCases/ch09/9.6/S9.6_A3.1_T4.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBPcGVyYXRvciB1c2VzIGZsb29yLCBhYnMKICoKICogQHBhdGggY2gwOS85LjYvUzkuNl9BMy4yX1QxLmpzCiAqIEBkZXNjcmlwdGlvbiBVc2Ugb3BlcmF0b3IgPj4+MAogKi8KCi8vIENIRUNLIzEKaWYgKCgxLjIzNDUgPj4+IDApICE9PSAxKSB7CiAgJEVSUk9SKCcjMTogKDEuMjM0NSA+Pj4gMCkgPT09IDEuIEFjdHVhbDogJyArICgoMS4yMzQ1ID4+PiAwKSkpOwp9CgovLyBDSEVDSyMyCmlmICgoLTUuNDMyMSA+Pj4gMCkgIT09IDQyOTQ5NjcyOTEpIHsKICAkRVJST1IoJyMyOiAoLTUuNDMyMSA+Pj4gMCkgPT09IDQyOTQ5NjcyOTEuIEFjdHVhbDogJyArICgoLTUuNDMyMSA+Pj4gMCkpKTsKfQoK",
"commentary":"Operator uses floor, abs",
"description":"Use operator >>>0",
"path":"TestCases/ch09/9.6/S9.6_A3.2_T1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBJZiB2YWx1ZSBpcyBOYU4sICswLCAtMCwgK0luZmluaXR5LCBvciAtSW5maW5pdHksIHJldHVybiArMAogKgogKiBAcGF0aCBjaDA5LzkuNy9TOS43X0ExLmpzCiAqIEBkZXNjcmlwdGlvbiBGb3IgdGVzdGluZyB1c2UgU3RyaW5nLmZyb21DaGFyQ29kZShOdW1iZXIpLmNoYXJDb2RlQXQoMCkgY29uc3RydWN0aW9uCiAqLwoKLy8gQ0hFQ0sjMQppZiAoU3RyaW5nLmZyb21DaGFyQ29kZShOdW1iZXIuTmFOKS5jaGFyQ29kZUF0KDApICE9PSArMCkgewogICRFUlJPUignIzEuMTogU3RyaW5nLmZyb21DaGFyQ29kZShOdW1iZXIuTmFOKS5jaGFyQ29kZUF0KDApID09PSAwLiBBY3R1YWw6ICcgKyAoU3RyaW5nLmZyb21DaGFyQ29kZShOdW1iZXIuTmFOKS5jaGFyQ29kZUF0KDApKSk7Cn0gZWxzZSBpZiAoMS9TdHJpbmcuZnJvbUNoYXJDb2RlKE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VtYmVyLk5FR0FUSVZFX0lORklOSVRZKS5jaGFyQ29kZUF0KDApICE9PSArMCkgewogICRFUlJPUigiIzYuMTogU3RyaW5nLmZyb21DaGFyQ29kZShOdW1iZXIuTkVHQVRJVkVfSU5GSU5JVFkpLmNoYXJDb2RlQXQoMCkgPT09ICswIik7Cn0gZWxzZSBpZiAoMS9TdHJpbmcuZnJvbUNoYXJDb2RlKE51bWJlci5ORUdBVElWRV9JTkZJTklUWSkuY2hhckNvZGVBdCgwKSAhPT0gTnVtYmVyLlBPU0lUSVZFX0lORklOSVRZKSB7CiAgJEVSUk9SKCIjNi4yOiBTdHJpbmcuZnJvbUNoYXJDb2RlKE51bWJlci5ORUdBVElWRV9JTkZJTklUWSkuY2hhckNvZGVBdCgwKSA9PT0gKzAuIEFjdHVhbDogLTAiKTsKfQoKCgo=",
"commentary":"If value is NaN, +0, -0, +Infinity, or -Infinity, return +0",
"description":"For testing use String.fromCharCode(Number).charCodeAt(0) construction",
"path":"TestCases/ch09/9.7/S9.7_A1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUb1VpbnQxNiByZXR1cm5zIHZhbHVlcyBiZXR3ZWVuIDAgYW5kIDJeMTYtMQogKgogKiBAcGF0aCBjaDA5LzkuNy9TOS43X0EyLjEuanMKICogQGRlc2NyaXB0aW9uIENvbnZlcnRpbmcgbnVtYmVycywgd2hpY2ggYXJlIGluXG91dHNpZGUgb2YgVWludDE2IHNjb3Blcywgd2l0aCBTdHJpbmcuZnJvbUNoYXJDb2RlKE51bWJlcikuY2hhckNvZGVBdCgwKSBjb25zdHJ1Y3Rpb24KICovCgovLyBDSEVDSyMxCmlmIChTdHJpbmcuZnJvbUNoYXJDb2RlKDApLmNoYXJDb2RlQXQoMCkgIT09IDApIHsKICAkRVJST1IoJyMxOiBTdHJpbmcuZnJvbUNoYXJDb2RlKD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ZnJvbUNoYXJDb2RlKDQyOTQ5NjcyOTYpLmNoYXJDb2RlQXQoMCkpKTsKfQoK",
"commentary":"ToUint16 returns values between 0 and 2^16-1",
"description":"Converting numbers, which are in\\outside of Uint16 scopes, with String.fromCharCode(Number).charCodeAt(0) construction",
"path":"TestCases/ch09/9.7/S9.7_A2.1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBDb21wdXRlIHJlc3VsdCBtb2R1bG8gMl4xNgogKgogKiBAcGF0aCBjaDA5LzkuNy9TOS43X0EyLjIuanMKICogQGRlc2NyaXB0aW9uIEZvciB0ZXN0aW5nIHVzZSBTdHJpbmcuZnJvbUNoYXJDb2RlKE51bWJlcikuY2hhckNvZGVBdCgwKSBjb25zdHJ1Y3Rpb24KICovCgovLyBDSEVDSyMxCmlmIChTdHJpbmcuZnJvbUNoYXJDb2RlKC0zMjc2NykuY2hhckNvZGVBdCgwKSAhPT0gMzI3NjkpIHsKICAkRVJST1IoJyMxOiBTdHJpbmcuZnJvbUNoYXJDb2RlKC0zMjc2NykuY2hhckNvZGVBdCgwKSA9PT0gMzI3NjkuIEFjdHVhbDogJyArIChTdHJpbmcuZnJvbUNoYXJDb2RlKC0zMjc2NykuY2hhckNvZGVBdCgwKSkpOwp9CgovLyBDSEVDSyMyCmlmIChTdHJpbmcuZnJvbUNoYXJDb2RlKC0zMjc2OCkuY2hhckNvZGVBdCgwKSAhPT0gMzI3NjgpIHsKICAkRVJST1IoJyMyOiBTdHJpbmcuZnJvbUNoYXJDb2RlKC0zMjc2OCkuY2hhckNvZGVBdCgwKSA9PT0gMzI3NjguIEFjdHVhbDogJyArIChTdHJpbmcuZnJvbUNoYXJDb2RlKC0zMjc2OCkuY2hhckNvZGVBdCgwKSkpOwp9CgovLyBDSEVDSyMzCmlmIChTdHJpbmcuZnJvbUNoYXJDb2RlKC0zMjc2OS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EwNzIpLmNoYXJDb2RlQXQoMCkgPT09IDAuIEFjdHVhbDogJyArIChTdHJpbmcuZnJvbUNoYXJDb2RlKDEzMTA3MikuY2hhckNvZGVBdCgwKSkpOwp9CgovLyBDSEVDSyMxMgppZiAoU3RyaW5nLmZyb21DaGFyQ29kZSgxMzEwNzMpLmNoYXJDb2RlQXQoMCkgIT09IDEpIHsKICAkRVJST1IoJyMxMjogU3RyaW5nLmZyb21DaGFyQ29kZSgxMzEwNzMpLmNoYXJDb2RlQXQoMCkgPT09IDEuIEFjdHVhbDogJyArIChTdHJpbmcuZnJvbUNoYXJDb2RlKDEzMTA3MykuY2hhckNvZGVBdCgwKSkpOwp9Cgo=",
"commentary":"Compute result modulo 2^16",
"description":"For testing use String.fromCharCode(Number).charCodeAt(0) construction",
"path":"TestCases/ch09/9.7/S9.7_A2.2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBPcGVyYXRvciB1c2VzIFRvTnVtYmVyCiAqCiAqIEBwYXRoIGNoMDkvOS43L1M5LjdfQTMuMV9UMS5qcwogKiBAZGVzY3JpcHRpb24gVHlwZSh4KSBpcyBCb29sZWFuCiAqLwoKLy8gQ0hFQ0sjMQppZiAoU3RyaW5nLmZyb21DaGFyQ29kZShuZXcgQm9vbGVhbih0cnVlKSkuY2hhckNvZGVBdCgwKSAhPT0gMSkgewogICRFUlJPUignIzE6IFN0cmluZy5mcm9tQ2hhckNvZGUobmV3IEJvb2xlYW4odHJ1ZSkpLmNoYXJDb2RlQXQoMCkgPT09IDEuIEFjdHVhbDogJyArIChTdHJpbmcuZnJvbUNoYXJDb2RlKG5ldyBCb29sZWFuKHRydWUpKS5jaGFyQ29kZUF0KDApKSk7Cn0KCi8vIENIRUNLIzIKaWYgKFN0cmluZy5mcm9tQ2hhckNvZGUoZmFsc2UpLmNoYXJDb2RlQXQoMCkgIT09IDApIHsKICAkRVJST1IoJyMyOiBTdHJpbmcuZnJvbUNoYXJDb2RlKGZhbHNlKS5jaGFyQ29kZUF0KDApID09PSAwLiBBY3R1YWw6ICcgKyAoU3RyaW5nLmZyb21DaGFyQ29kZShmYWxzZSkuY2hhckNvZGVBdCgwKSkpOwp9Cgo=",
"commentary":"Operator uses ToNumber",
"description":"Type(x) is Boolean",
"path":"TestCases/ch09/9.7/S9.7_A3.1_T1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBPcGVyYXRvciB1c2VzIFRvTnVtYmVyCiAqCiAqIEBwYXRoIGNoMDkvOS43L1M5LjdfQTMuMV9UMi5qcwogKiBAZGVzY3JpcHRpb24gVHlwZSh4KSBpcyBOdW1iZXIKICovCgovLyBDSEVDSyMxCmlmIChTdHJpbmcuZnJvbUNoYXJDb2RlKG5ldyBOdW1iZXIoMSkpLmNoYXJDb2RlQXQoMCkgIT09IDEpIHsKICAkRVJST1IoJyMxOiBTdHJpbmcuZnJvbUNoYXJDb2RlKG5ldyBOdW1iZXIoMSkpLmNoYXJDb2RlQXQoMCkgPT09IDEuIEFjdHVhbDogJyArIChTdHJpbmcuZnJvbUNoYXJDb2RlKG5ldyBOdW1iZXIoMSkpLmNoYXJDb2RlQXQoMCkpKTsKfQoKLy8gQ0hFQ0sjMgppZiAoU3RyaW5nLmZyb21DaGFyQ29kZSgtMS4yMzQpLmNoYXJDb2RlQXQoMCkgIT09IDY1NTM1KSB7CiAgJEVSUk9SKCcjMjogU3RyaW5nLmZyb21DaGFyQ29kZSgtMS4yMzQpLmNoYXJDb2RlQXQoMCkgPT09IDY1NTM1LiBBY3R1YWw6ICcgKyAoU3RyaW5nLmZyb21DaGFyQ29kZSgtMS4yMzQpLmNoYXJDb2RlQXQoMCkpKTsKfQoK",
"commentary":"Operator uses ToNumber",
"description":"Type(x) is Number",
"path":"TestCases/ch09/9.7/S9.7_A3.1_T2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBPcGVyYXRvciB1c2VzIFRvTnVtYmVyCiAqCiAqIEBwYXRoIGNoMDkvOS43L1M5LjdfQTMuMV9UMy5qcwogKiBAZGVzY3JpcHRpb24gVHlwZSh4KSBpcyBTdHJpbmcKICovCgovLyBDSEVDSyMxCmlmIChTdHJpbmcuZnJvbUNoYXJDb2RlKG5ldyBTdHJpbmcoMSkpLmNoYXJDb2RlQXQoMCkgIT09IDEpIHsKICAkRVJST1IoJyMxOiBTdHJpbmcuZnJvbUNoYXJDb2RlKG5ldyBTdHJpbmcoMSkpLmNoYXJDb2RlQXQoMCkgPT09IDEuIEFjdHVhbDogJyArIChTdHJpbmcuZnJvbUNoYXJDb2RlKG5ldyBTdHJpbmcoMSkpLmNoYXJDb2RlQXQoMCkpKTsKfQoKLy8gQ0hFQ0sjMgppZiAoU3RyaW5nLmZyb21DaGFyQ29kZSgiLTEuMjM0IikuY2hhckNvZGVBdCgwKSAhPT0gNjU1MzUpIHsKICAkRVJST1IoJyMyOiBTdHJpbmcuZnJvbUNoYXJDb2RlKCItMS4yMzQiKS5jaGFyQ29kZUF0KDApID09PSA2NTUzNS4gQWN0dWFsOiAnICsgKFN0cmluZy5mcm9tQ2hhckNvZGUoIi0xLjIzNCIpLmNoYXJDb2RlQXQoMCkpKTsKfQoK",
"commentary":"Operator uses ToNumber",
"description":"Type(x) is String",
"path":"TestCases/ch09/9.7/S9.7_A3.1_T3.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBPcGVyYXRvciB1c2VzIFRvTnVtYmVyCiAqCiAqIEBwYXRoIGNoMDkvOS43L1M5LjdfQTMuM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mdW5jdGlvbigpIHtyZXR1cm4ge319fTsgb2JqZWN0IHRocm93IFR5cGVFcnJvci4gQWN0dWFsOiAnICsgKGUpKTsKICB9IAp9Cgo=",
"commentary":"Operator uses ToNumber",
"description":"Type(x) is Object",
"path":"TestCases/ch09/9.7/S9.7_A3.1_T4.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBPcGVyYXRvciB1c2VzIGZsb29yLCBhYnMKICoKICogQHBhdGggY2gwOS85LjcvUzkuN19BMy4yX1QxLmpzCiAqIEBkZXNjcmlwdGlvbiBGb3IgdGVzdGluZyB1c2UgU3RyaW5nLmZyb21DaGFyQ29kZShOdW1iZXIpLmNoYXJDb2RlQXQoMCkgY29uc3RydWN0aW9uCiAqLwoKLy8gQ0hFQ0sjMQppZiAoU3RyaW5nLmZyb21DaGFyQ29kZSgxLjIzNDUpLmNoYXJDb2RlQXQoMCkgIT09IDEpIHsKICAkRVJST1IoJyMxOiBTdHJpbmcuZnJvbUNoYXJDb2RlKDEuMjM0NSkuY2hhckNvZGVBdCgwKSA9PT0gMS4gQWN0dWFsOiAnICsgKFN0cmluZy5mcm9tQ2hhckNvZGUoMS4yMzQ1KS5jaGFyQ29kZUF0KDApKSk7Cn0KCi8vIENIRUNLIzIKaWYgKFN0cmluZy5mcm9tQ2hhckNvZGUoLTUuNDMyMSkuY2hhckNvZGVBdCgwKSAhPT0gNjU1MzEpIHsKICAkRVJST1IoJyMyOiBTdHJpbmcuZnJvbUNoYXJDb2RlKC01LjQzMjEpLmNoYXJDb2RlQXQoMCkgPT09IDY1NTMxLiBBY3R1YWw6ICcgKyAoU3RyaW5nLmZyb21DaGFyQ29kZSgtNS40MzIxKS5jaGFyQ29kZUF0KDApKSk7Cn0KCg==",
"commentary":"Operator uses floor, abs",
"description":"For testing use String.fromCharCode(Number).charCodeAt(0) construction",
"path":"TestCases/ch09/9.7/S9.7_A3.2_T1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgVG9TdHJpbmcgY29udmVyc2lvbiBmcm9tIHVuZGVmaW5lZCB2YWx1ZSBpcyAidW5kZWZpbmVkIgogKgogKiBAcGF0aCBjaDA5LzkuOC9TOS44X0ExX1QxLmpzCiAqIEBkZXNjcmlwdGlvbiBVbmRlZmluZWQgdmFsdWVzIGlzIHVuZGVmaW5lZCwgdm9pZCAwIGFuZCBldmFsKCJ2YXIgeCIpLiBVc2UgZXhwbGljaXQgdHJhbnNmb3JtYXRpb24KICovCgovLyBDSEVDSyMxCmlmIChTdHJpbmcodW5kZWZpbmVkKSAhPT0gInVuZGVmaW5lZCIpIHsKICAkRVJST1IoJyMxOiBTdHJpbmcodW5kZWZpbmVkKSA9PT0gInVuZGVmaW5lZCIuIEFjdHVhbDogJyArIChTdHJpbmcodW5kZWZpbmVkKSkpOwp9CgovLyBDSEVDSyMyCmlmIChTdHJpbmcodm9pZCAwKSAhPT0gInVuZGVmaW5lZCIpIHsKICAkRVJST1IoJyMyOiBTdHJpbmcodm9pZCAwKSA9PT0gInVuZGVmaW5lZCIuIEFjdHVhbDogJyArIChTdHJpbmcodm9pZCAwKSkpOwp9CgovLyBDSEVDSyMzCmlmIChTdHJpbmcoZXZhbCgidmFyIHgiKSkgIT09ICJ1bmRlZmluZWQiKSB7CiAgJEVSUk9SKCcjMzogU3RyaW5nKGV2YWwoInZhciB4IikpID09PSAidW5kZWZpbmVkIiAuIEFjdHVhbDogJyArIChTdHJpbmcoZXZhbCgidmFyIHgiKSkpKTsKfQoK",
"commentary":"Result of ToString conversion from undefined value is \"undefined\"",
"description":"Undefined values is undefined, void 0 and eval(\"var x\"). Use explicit transformation",
"path":"TestCases/ch09/9.8/S9.8_A1_T1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgVG9TdHJpbmcgY29udmVyc2lvbiBmcm9tIHVuZGVmaW5lZCB2YWx1ZSBpcyAidW5kZWZpbmVkIgogKgogKiBAcGF0aCBjaDA5LzkuOC9TOS44X0ExX1QyLmpzCiAqIEBkZXNjcmlwdGlvbiBVbmRlZmluZWQgdmFsdWVzIGlzIHVuZGVmaW5lZCwgdm9pZCAwIGFuZCBldmFsKCJ2YXIgeCIpLiBVc2UgaW1wbGljaXQgdHJhbnNmb3JtYXRpb24KICovCgovLyBDSEVDSyMxCmlmICh1bmRlZmluZWQgKyAiIiAhPT0gInVuZGVmaW5lZCIpIHsKICAkRVJST1IoJyMxOiB1bmRlZmluZWQgKyAiIiA9PT0gInVuZGVmaW5lZCIuIEFjdHVhbDogJyArICh1bmRlZmluZWQgKyAiIikpOwp9CgovLyBDSEVDSyMyCmlmICh2b2lkIDAgKyAiIiAhPT0gInVuZGVmaW5lZCIpIHsKICAkRVJST1IoJyMyOiB2b2lkIDAgKyAiIiA9PT0gInVuZGVmaW5lZCIuIEFjdHVhbDogJyArICh2b2lkIDAgKyAiIikpOwp9CgovLyBDSEVDSyMzCmlmIChldmFsKCJ2YXIgeCIpICsgIiIgIT09ICJ1bmRlZmluZWQiKSB7CiAgJEVSUk9SKCcjMzogZXZhbCgidmFyIHgiKSArICIiID09PSAidW5kZWZpbmVkIi4gQWN0dWFsOiAnICsgKGV2YWwoInZhciB4IikgKyAiIikpOwp9Cgo=",
"commentary":"Result of ToString conversion from undefined value is \"undefined\"",
"description":"Undefined values is undefined, void 0 and eval(\"var x\"). Use implicit transformation",
"path":"TestCases/ch09/9.8/S9.8_A1_T2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgVG9TdHJpbmcgY29udmVyc2lvbiBmcm9tIG51bGwgdmFsdWUgaXMgIm51bGwiCiAqCiAqIEBwYXRoIGNoMDkvOS44L1M5LjhfQTJfVDEuanMKICogQGRlc2NyaXB0aW9uIG51bGwgY29udmVydCB0byBTdHJpbmcgYnkgZXhwbGljaXQgdHJhbnNmb3JtYXRpb24KICovCgovLyBDSEVDSyMxCmlmIChTdHJpbmcobnVsbCkgIT09ICJudWxsIikgewogICRFUlJPUignIzE6IFN0cmluZyhudWxsKSA9PT0gIm51bGwiLiBBY3R1YWw6ICcgKyAoU3RyaW5nKG51bGwpKSk7IAp9IAoK",
"commentary":"Result of ToString conversion from null value is \"null\"",
"description":"null convert to String by explicit transformation",
"path":"TestCases/ch09/9.8/S9.8_A2_T1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgVG9TdHJpbmcgY29udmVyc2lvbiBmcm9tIG51bGwgdmFsdWUgaXMgIm51bGwiCiAqCiAqIEBwYXRoIGNoMDkvOS44L1M5LjhfQTJfVDIuanMKICogQGRlc2NyaXB0aW9uIG51bGwgY29udmVydCB0byBTdHJpbmcgYnkgaW1wbGljaXQgdHJhbnNmb3JtYXRpb24KICovCgovLyBDSEVDSyMxCmlmIChudWxsICsgIiIgIT09ICJudWxsIikgewogICRFUlJPUignIzE6IG51bGwgKyAiIiA9PT0gIm51bGwiLiBBY3R1YWw6ICcgKyAobnVsbCArICIiKSk7IAp9IAoK",
"commentary":"Result of ToString conversion from null value is \"null\"",
"description":"null convert to String by implicit transformation",
"path":"TestCases/ch09/9.8/S9.8_A2_T2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgVG9TdHJpbmcgY29udmVyc2lvbiBmcm9tIGJvb2xlYW4gdmFsdWUgaXMgInRydWUiIGlmCiAqIHRoZSBhcmd1bWVudCBpcyAidHJ1ZSIsIGVsc2UgaXMgImZhbHNlIgogKgogKiBAcGF0aCBjaDA5LzkuOC9TOS44X0EzX1QxLmpzCiAqIEBkZXNjcmlwdGlvbiBUcnVlIGFuZCBmYWxzZSBjb252ZXJ0IHRvIFN0cmluZyBieSBleHBsaWNpdCB0cmFuc2Zvcm1hdGlvbgogKi8KCi8vIENIRUNLIzEKaWYgKFN0cmluZyhmYWxzZSkgIT09ICJmYWxzZSIpIHsKICAkRVJST1IoJyMxOiBTdHJpbmcoZmFsc2UpID09PSAiZmFsc2UiLiBBY3R1YWw6ICcgKyAoU3RyaW5nKGZhbHNlKSkpOwp9CgovLyBDSEVDSyMyCmlmIChTdHJpbmcodHJ1ZSkgIT09ICJ0cnVlIikgewogICRFUlJPUignIzI6IFN0cmluZyh0cnVlKSA9PT0gInRydWUiLiBBY3R1YWw6ICcgKyAoU3RyaW5nKHRydWUpKSk7CQp9Cgo=",
"commentary":"Result of ToString conversion from boolean value is \"true\" if\nthe argument is \"true\", else is \"false\"",
"description":"True and false convert to String by explicit transformation",
"path":"TestCases/ch09/9.8/S9.8_A3_T1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgVG9TdHJpbmcgY29udmVyc2lvbiBmcm9tIGJvb2xlYW4gdmFsdWUgaXMgInRydWUiIGlmCiAqIHRoZSBhcmd1bWVudCBpcyAidHJ1ZSIsIGVsc2UgaXMgImZhbHNlIgogKgogKiBAcGF0aCBjaDA5LzkuOC9TOS44X0EzX1QyLmpzCiAqIEBkZXNjcmlwdGlvbiBUcnVlIGFuZCBmYWxzZSBjb252ZXJ0IHRvIFN0cmluZyBieSBpbXBsaWNpdCB0cmFuc2Zvcm1hdGlvbgogKi8KCi8vIENIRUNLIzEKaWYgKGZhbHNlICsgIiIgIT09ICJmYWxzZSIpIHsKICAkRVJST1IoJyMxOiBmYWxzZSArICIiID09PSAiZmFsc2UiLiBBY3R1YWw6ICcgKyAoZmFsc2UgKyAiIikpOwp9CgovLyBDSEVDSyMyCmlmICh0cnVlICsgIiIgIT09ICJ0cnVlIikgewogICRFUlJPUignIzI6IHRydWUgKyAiIiA9PT0gInRydWUiLiBBY3R1YWw6ICcgKyAodHJ1ZSArICIiKSk7CQp9Cgo=",
"commentary":"Result of ToString conversion from boolean value is \"true\" if\nthe argument is \"true\", else is \"false\"",
"description":"True and false convert to String by implicit transformation",
"path":"TestCases/ch09/9.8/S9.8_A3_T2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgU3RyaW5nIGNvbnZlcnNpb24gZnJvbSBzdHJpbmcgdmFsdWUgaXMgdGhlIGlucHV0IGFyZ3VtZW50IChubyBjb252ZXJzaW9uKQogKgogKiBAcGF0aCBjaDA5LzkuOC9TOS44X0E0X1QxLmpzCiAqIEBkZXNjcmlwdGlvbiBTb21lIHN0cmluZ3MgY29udmVydCB0byBTdHJpbmcgd2l0aCBleHBsaWNpdCB0cmFuc2Zvcm1hdGlvbgogKi8KCi8vIENIRUNLIzEKdmFyIHgxID0gImFiYyI7CmlmIChTdHJpbmcoeDEpICE9PSB4MSkgewogICRFUlJPUignIzE6IFN0cmluZygiYWJjIikgPT09ICJhYmMiLiBBY3R1YWw6ICcgKyAoU3RyaW5nKCJhYmMiKSkpOwp9CgovLyBDSEVDSyMyCnZhciB4MiA9ICJhYmMiOwppZiAodHlwZW9mIFN0cmluZyh4MikgIT09IHR5cGVvZiB4MikgeyAKICAkRVJST1IoJyMyOiB0eXBlb2YgU3RyaW5nKCJhYmMiKSA9PT0gInN0cmluZyIuIEFjdHVhbDogJyArICh0eXBlb2YgU3RyaW5nKCJhYmMiKSkpOwp9Cgo=",
"commentary":"Result of String conversion from string value is the input argument (no conversion)",
"description":"Some strings convert to String with explicit transformation",
"path":"TestCases/ch09/9.8/S9.8_A4_T1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgU3RyaW5nIGNvbnZlcnNpb24gZnJvbSBzdHJpbmcgdmFsdWUgaXMgdGhlIGlucHV0IGFyZ3VtZW50IChubyBjb252ZXJzaW9uKQogKgogKiBAcGF0aCBjaDA5LzkuOC9TOS44X0E0X1QyLmpzCiAqIEBkZXNjcmlwdGlvbiBTb21lIHN0cmluZ3MgY29udmVydCB0byBTdHJpbmcgYnkgaW1wbGljaXQgdHJhbnNmb3JtYXRpb24KICovCgovLyBDSEVDSyMxCnZhciB4MSA9ICJhYmMiOwppZiAoeDEgKyAiIiAhPT0geDEpIHsKICAkRVJST1IoJyMxOiAiYWJjIiArICIiID09PSAiYWJjIi4gQWN0dWFsOiAnICsgKCJhYmMiICsgIiIpKTsKfQoKLy8gQ0hFQ0sjMgp2YXIgeDIgPSAiYWJjIjsKaWYgKHR5cGVvZiB4MiArICIiICE9PSB0eXBlb2YgeDIpIHsgCiAgJEVSUk9SKCcjMjogdHlwZW9mICJhYmMiICsgIiIgPT09ICJzdHJpbmciLiBBY3R1YWw6ICcgKyAodHlwZW9mICJhYmMiICsgIiIpKTsKfQoK",
"commentary":"Result of String conversion from string value is the input argument (no conversion)",
"description":"Some strings convert to String by implicit transformation",
"path":"TestCases/ch09/9.8/S9.8_A4_T2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2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vYmplY3QgTXlPYmpdIjt9IAogICAgICAgICAgICB9OwoKaWYgKFN0cmluZyhteW9iajMpICE9PSAiW29iamVjdCBPYmplY3RdIil7CiAgJEVSUk9SKCIjMTM6IFN0cmluZyhteW9iaikgY2FsbHMgVG9QcmltaXRpdmUgd2l0aCBoaW50IFN0cmluZyIpOwp9Cgo=",
"commentary":"Result of String conversion from Object value is conversion\nfrom primitive value",
"description":"Some objects convert to String by explicit transformation",
"path":"TestCases/ch09/9.8/S9.8_A5_T1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXN1bHQgb2YgU3RyaW5nIGNvbnZlcnNpb24gZnJvbSBPYmplY3QgdmFsdWUgaXMgY29udmVyc2lvbgogKiBmcm9tIHByaW1pdGl2ZSB2YWx1ZQogKgogKiBAcGF0aCBjaDA5LzkuOC9TOS44X0E1X1QyLmpzCiAqIEBkZXNjcmlwdGlvbiBTb21lIG9iamVjdHMgY29udmVydCB0byBTdHJpbmcgYnkgaW1wbGljaXQgdHJhbnNmb3JtYXRpb24KICovCgovLyBDSEVDSyMxCmlmIChuZXcgTnVtYmVyKCkgKyAiIiAhPT0gIjAiKSB7CiAgJEVSUk9SKCcjMTogbmV3IE51bWJlcigpICsgIiIgPT09ICIwIi4gQWN0dWFsOiAnICsgKG5ldyBOdW1iZXIoKSArICIiKSk7Cn0KCi8vIENIRUNLIzIKaWYgKG5ldyBOdW1iZXIoMCkgKyAiIiAhPT0gIjAiKSB7CiAgJEVSUk9SKCcjMjogbmV3IE51bWJlcigwKSArICIiID09PSAiMCIuIEFjdHVhbDogJyArIChuZXcgTnVtYmVyKDApICsgIiIpKTsKfQoKLy8gQ0hFQ0sjMwppZiAobmV3IE51bWJlcihOdW1iZXIuTmFOKSArICIiICE9PSAiTmFOIikgewogICRFUlJPUignIzM6IG5ldyBOdW1iZXIoTnVtYmVyLk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AgICAgICAgICAgfTsKCmlmIChteW9iajIgKyAiIiAhPT0gIjY3ODkwIil7CiAgJEVSUk9SKCcjMTI6IG15b2JqMiArICIiIGNhbGxzIFRvUHJpbWl0aXZlIHdpdGggaGludCBOdW1iZXIuIEV4cHRlY3RlZDogIjY3ODkwIi4gQWN0dWFsOiAnICsgKG15b2JqMiArICIiKSk7Cn0KCi8vIENIRUNLIzEzCnZhciBteW9iajMgPSB7CiAgICAgICAgICAgICAgICB0b051bWJlciA6IGZ1bmN0aW9uKCl7cmV0dXJuIDEyMzQ1O30gCiAgICAgICAgICAgIH07CgppZiAobXlvYmozICsgIiIgIT09ICJbb2JqZWN0IE9iamVjdF0iKXsKICAkRVJST1IoJyMxMzogbXlvYmozICsgIiIgY2FsbHMgVG9QcmltaXRpdmUgd2l0aCBoaW50IE51bWJlci4gIEV4cHRlY3RlZDogIltvYmplY3QgT2JqZWN0XSIuIEFjdHVhbDogJyArIChteW9iajMgKyAiIikpOwp9Cgo=",
"commentary":"Result of String conversion from Object value is conversion\nfrom primitive value",
"description":"Some objects convert to String by implicit transformation",
"path":"TestCases/ch09/9.8/S9.8_A5_T2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBJZiBtIGlzIE5hTiwgcmV0dXJuIHRoZSBzdHJpbmcgIk5hTiIKICoKICogQHBhdGggY2gwOS85LjgvOS44LjEvUzkuOC4xX0ExLmpzCiAqIEBkZXNjcmlwdGlvbiBOYU4gY29udmVydCB0byBTdHJpbmcgYnkgZXhwbGljaXQgdHJhbnNmb3JtYXRpb24KICovCgovLyBDSEVDSyMxCmlmIChTdHJpbmcoTmFOKSAhPT0gIk5hTiIpIHsKICAkRVJST1IoJyMxOiBTdHJpbmcoTmFOKSA9PT0gTm90LWEtTnVtYmVyIEFjdHVhbDogJyArIChTdHJpbmcoTmFOKSkpOwp9CgovLyBDSEVDSyMyCmlmIChTdHJpbmcoTnVtYmVyLk5hTikgIT09ICJOYU4iKSB7CiAgJEVSUk9SKCcjMjogU3RyaW5nKE51bWJlci5OYU4pID09PSBOb3QtYS1OdW1iZXIgQWN0dWFsOiAnICsgKFN0cmluZyhOdW1iZXIuTmFOKSkpOwp9CgovLyBDSEVDSyMzCmlmIChTdHJpbmcoTnVtYmVyKCJhc2FzYSIpKSAhPT0gIk5hTiIpIHsKICAkRVJST1IoJyMzOiBTdHJpbmcoTnVtYmVyKCJhc2FzYSIpKSA9PT0gTm90LWEtTnVtYmVyIEFjdHVhbDogJyArIChTdHJpbmcoTnVtYmVyKCJhc2FzYSIpKSkpOwp9Cgo=",
"commentary":"If m is NaN, return the string \"NaN\"",
"description":"NaN convert to String by explicit transformation",
"path":"TestCases/ch09/9.8/9.8.1/S9.8.1_A1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXR1cm4gdGhlIHN0cmluZyBjb25zaXN0aW5nIG9mIHRoZSBtb3N0IHNpZ25pZmljYW50CiAqIGRpZ2l0IG9mIHRoZSBkZWNpbWFsIHJlcHJlc2VudGF0aW9uIG9mIHMsIGZvbGxvd2VkIGJ5IGEgZGVjaW1hbCBwb2ludCAnLicsCiAqIGZvbGxvd2VkIGJ5IHRoZSByZW1haW5pbmcgay0xIGRpZ2l0cyBvZiB0aGUgZGVjaW1hbCByZXByZXNlbnRhdGlvbiBvZiBzLAogKiBmb2xsb3dlZCBieSB0aGUgbG93ZXJjYXNlIGNoYXJhY3RlciAnZScsIGZvbGxvd2VkIGJ5IGEgcGx1cyBzaWduICcrJyBvcgogKiBtaW51cyBzaWduICctJyBhY2NvcmRpbmcgdG8gd2hldGhlciBuLTEgaXMgcG9zaXRpdmUgb3IgbmVnYXRpdmUsIGZvbGxvd2VkCiAqIGJ5IHRoZSBkZWNpbWFsIHJ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MC4wMDEyMzQ1Ii4gQWN0dWFsOiAnICsgKFN0cmluZyguMDAxMjM0NSkpKTsKfQoKLy8gQ0hFQ0sjNgppZiAoU3RyaW5nKC4wMDAxMjM0NSkgIT09ICIwLjAwMDEyMzQ1IikgewogICRFUlJPUignIzY6IFN0cmluZyguMDAwMTIzNDUpID09PSAiMC4wMDAxMjM0NSIuIEFjdHVhbDogJyArIChTdHJpbmcoLjAwMDEyMzQ1KSkpOwp9CgovLyBDSEVDSyM3CmlmIChTdHJpbmcoLjAwMDAxMjM0NSkgIT09ICIwLjAwMDAxMjM0NSIpIHsKICAkRVJST1IoJyM3OiBTdHJpbmcoLjAwMDAxMjM0NSkgPT09ICIwLjAwMDAxMjM0NSIuIEFjdHVhbDogJyArIChTdHJpbmcoLjAwMDAxMjM0NSkpKTsKfQoKLy8gQ0hFQ0sjOAppZiAoU3RyaW5nKC4wMDAwMDEyMzQ1KSAhPT0gIjAuMDAwMDAxMjM0NSIpIHsKICAkRVJST1IoJyM4OiBTdHJpbmcoLjAwMDAwMTIzNDUpID09PSAiMC4wMDAwMDEyMzQ1Ii4gQWN0dWFsOiAnICsgKFN0cmluZyguMDAwMDAxMjM0NSkpKTsKfQoKLy8gQ0hFQ0sjOQppZiAoU3RyaW5nKC4wMDAwMDAxMjM0NSkgIT09ICIxLjIzNDVlLTciKSB7CiAgJEVSUk9SKCcjOTogU3RyaW5nKC4wMDAwMDAxMjM0NSkgPT09ICIxLjIzNDVlLTciLiBBY3R1YWw6ICcgKyAoU3RyaW5nKC4wMDAwMDAxMjM0NSkpKTsKfQoK",
"commentary":"Return the string consisting of the most significant\ndigit of the decimal representation of s, followed by a decimal point '.',\nfollowed by the remaining k-1 digits of the decimal representation of s,\nfollowed by the lowercase character 'e', followed by a plus sign '+' or\nminus sign '-' according to whether n-1 is positive or negative, followed\nby the decimal representation of the integer abs(n-1) (with no leading zeros)",
"description":"Various float numbers convert to String by explicit transformation",
"path":"TestCases/ch09/9.8/9.8.1/S9.8.1_A10.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBJZiBtIGlzICswIG9yIC0wLCByZXR1cm4gdGhlIHN0cmluZyAiMCIKICoKICogQHBhdGggY2gwOS85LjgvOS44LjEvUzkuOC4xX0EyLmpzCiAqIEBkZXNjcmlwdGlvbiArMCBhbmQgLTAgY29udmVydCB0byBTdHJpbmcgYnkgZXhwbGljaXQgdHJhbnNmb3JtYXRpb24KICovCgovLyBDSEVDSyMxCmlmIChTdHJpbmcoKzApICE9PSAiMCIpIHsKICAkRVJST1IoJyMxOiBTdHJpbmcoKzApID09PSAiMCIuIEFjdHVhbDogJyArIChTdHJpbmcoKzApKSk7Cn0KCi8vIENIRUNLIzIKaWYgKFN0cmluZygtMCkgIT09ICIwIikgewogICRFUlJPUignIzI6IFN0cmluZygtMCkgPT09ICIwIi4gQWN0dWFsOiAnICsgKFN0cmluZygtMCkpKTsKfQoK",
"commentary":"If m is +0 or -0, return the string \"0\"",
"description":"+0 and -0 convert to String by explicit transformation",
"path":"TestCases/ch09/9.8/9.8.1/S9.8.1_A2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBJZiBtIGlzIGxlc3MgdGhhbiB6ZXJvLCByZXR1cm4gdGhlIHN0cmluZyBjb25jYXRlbmF0aW9uIG9mIHRoZQogKiBzdHJpbmcgIi0iIGFuZCBUb1N0cmluZygtbSkKICoKICogQHBhdGggY2gwOS85LjgvOS44LjEvUzkuOC4xX0EzLmpzCiAqIEBkZXNjcmlwdGlvbiAtMTIzNDU2Nzg5MCBjb252ZXJ0IHRvIFN0cmluZyBieSBleHBsaWNpdCB0cmFuc2Zvcm1hdGlvbgogKi8KCi8vIENIRUNLIzEKaWYgKFN0cmluZygtMTIzNDU2Nzg5MCkgIT09ICItMTIzNDU2Nzg5MCIpIHsKICAkRVJST1IoJyMxOiBTdHJpbmcoLTEyMzQ1Njc4OTApID09PSAiLTEyMzQ1Njc4OTAiLiBBY3R1YWw6ICcgKyAoU3RyaW5nKC0xMjM0NTY3ODkwKSkpOwp9CgovLyBDSEVDSyMyCmlmICgiLSIrU3RyaW5nKC0oLTEyMzQ1Njc4OTApKSAhPT0gIi0xMjM0NTY3ODkwIikgewogICRFUlJPUignIzI6ICItIitTdHJpbmcoLSgtMTIzNDU2Nzg5MCkpID09PSAiLTEyMzQ1Njc4OTAiLiBBY3R1YWw6ICcgKyAoIi0iK1N0cmluZygtKC0xMjM0NTY3ODkwKSkpKTsKfQoK",
"commentary":"If m is less than zero, return the string concatenation of the\nstring \"-\" and ToString(-m)",
"description":"-1234567890 convert to String by explicit transformation",
"path":"TestCases/ch09/9.8/9.8.1/S9.8.1_A3.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBJZiBtIGlzIGluZmluaXR5LCByZXR1cm4gdGhlIHN0cmluZyAiSW5maW5pdHkiCiAqCiAqIEBwYXRoIGNoMDkvOS44LzkuOC4xL1M5LjguMV9BNC5qcwogKiBAZGVzY3JpcHRpb24gKy8tSW5maW5pdHkgY29udmVydCB0byBTdHJpbmcgYnkgZXhwbGljaXQgdHJhbnNmb3JtYXRpb24KICovCgovLyBDSEVDSyMxCmlmIChTdHJpbmcoSW5maW5pdHkpICE9PSAiSW5maW5pdHkiKSB7CiAgJEVSUk9SKCcjMTogU3RyaW5nKEluZmluaXR5KSA9PT0gIkluZmluaXR5Ii4gQWN0dWFsOiAnICsgKFN0cmluZyhJbmZpbml0eSkpKTsKfQoKLy8gQ0hFQ0sjMgppZiAoU3RyaW5nKE51bWJlci5QT1NJVElWRV9JTkZJTklUWSkgIT09ICJJbmZpbml0eSIpIHsKICAkRVJST1IoJyMyOiBTdHJpbmcoTnVtYmVyLlBPU0lUSVZFX0lORklOSVRZKSA9PT0gIkluZmluaXR5Ii4gQWN0dWFsOiAnICsgKFN0cmluZyhOdW1iZXIuUE9TSVRJVkVfSU5GSU5JVFkpKSk7Cn0KCi8vIENIRUNLIzMKaWYgKFN0cmluZygtSW5maW5pdHkpICE9PSAiLUluZmluaXR5IikgewogICRFUlJPUignIzM6IFN0cmluZygtSW5maW5pdHkpID09PSAiLUluZmluaXR5Ii4gQWN0dWFsOiAnICsgKFN0cmluZygtSW5maW5pdHkpKSk7Cn0KCi8vIENIRUNLIzQKaWYgKFN0cmluZyhOdW1iZXIuTkVHQVRJVkVfSU5GSU5JVFkpICE9PSAiLUluZmluaXR5IikgewogICRFUlJPUignIzQ6IFN0cmluZyhOdW1iZXIuTkVHQVRJVkVfSU5GSU5JVFkpID09PSAiLUluZmluaXR5Ii4gQWN0dWFsOiAnICsgKFN0cmluZyhOdW1iZXIuTkVHQVRJVkVfSU5GSU5JVFkpKSk7Cn0KCg==",
"commentary":"If m is infinity, return the string \"Infinity\"",
"description":"+/-Infinity convert to String by explicit transformation",
"path":"TestCases/ch09/9.8/9.8.1/S9.8.1_A4.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBJZiAxIDw9IHMgPCAxZTIxIG9yIC0xZTIxIHMgPCAtMSwgcmV0dXJuIHRoZSBzdHJpbmcKICogY29uc2lzdGluZyBvZiB0aGUgayBkaWdpdHMgb2YgdGhlIGRlY2ltYWwgcmVwcmVzZW50YXRpb24gb2YgcyAoaW4gb3JkZXIsCiAqIHdpdGggbm8gbGVhZGluZyB6ZXJvZXMpLCBmb2xsb3dlZCBieSBuLWsgb2NjdXJyZW5jZXMgb2YgdGhlIGNoYXJhY3RlciAnMCcKICoKICogQHBhdGggY2gwOS85LjgvOS44LjEvUzku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DAwMDAwMDAwIi4gQWN0dWFsOiAnICsgKFN0cmluZygtMWUyMCkpKTsKfQoKLy8gQ0hFQ0sjMTIKaWYgKFN0cmluZygtMTIzNDUpICE9PSAiLTEyMzQ1IikgewogICRFUlJPUignIzEyOiBTdHJpbmcoLTEyMzQ1KSA9PT0gIi0xMjM0NSIuIEFjdHVhbDogJyArIChTdHJpbmcoLTEyMzQ1KSkpOwp9CgovLyBDSEVDSyMxMwppZiAoU3RyaW5nKC0xMjM0NTAwMCkgIT09ICItMTIzNDUwMDAiKSB7CiAgJEVSUk9SKCcjMTM6IFN0cmluZygtMTIzNDUwMDApID09PSAiLTEyMzQ1MDAwIi4gQWN0dWFsOiAnICsgKFN0cmluZygtMTIzNDUwMDApKSk7Cn0KCi8vIENIRUNLIzE0CmlmIChTdHJpbmcoMUUyMCkgIT09ICIxMDAwMDAwMDAwMDAwMDAwMDAwMDAiKSB7CiAgJEVSUk9SKCcjMTQ6IFN0cmluZygxRTIwKSA9PT0gIjEwMDAwMDAwMDAwMDAwMDAwMDAwMCIuIEFjdHVhbDogJyArIChTdHJpbmcoMUUyMCkpKTsKfQoKLy8gQ0hFQ0sjMTUKaWYgKFN0cmluZygtMUUyMCkgIT09ICItMTAwMDAwMDAwMDAwMDAwMDAwMDAwIikgewogICRFUlJPUignIzE1OiBTdHJpbmcoLTFFMjApID09PSAiLTEwMDAwMDAwMDAwMDAwMDAwMDAwMCIuIEFjdHVhbDogJyArIChTdHJpbmcoLTFFMjApKSk7Cn0KCgo=",
"commentary":"If 1 <= s < 1e21 or -1e21 s < -1, return the string\nconsisting of the k digits of the decimal representation of s (in order,\nwith no leading zeroes), followed by n-k occurrences of the character '0'",
"description":"Various integer numbers convert to String by explicit transformation",
"path":"TestCases/ch09/9.8/9.8.1/S9.8.1_A6.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBJZiAxIDw9IHMgPCAxZTIxIG9yIC0xZTIxIHMgPCAtMSBhbmQgcyBoYXMgYSBmcmFjdGlvbmFsCiAqIGNvbXBvbmVudCwgcmV0dXJuIHRoZSBzdHJpbmcgY29uc2lzdGluZyBvZiB0aGUgbW9zdCBzaWduaWZpY2FudCBuIGRpZ2l0cyBvZgogKiB0aGUgZGVjaW1hbCByZXByZXNlbnRhdGlvbiBvZiBzLCBmb2xsb3dlZCBieSBhIGRlY2ltYWwgcG9pbnQgJy4nLAogKiBmb2xsb3dlZCBieSB0aGUgcmVtYWluaW5nIGstbiBkaWdpdHMgb2YgdGhlIGRlY2ltYWwgcmVwcmVzZW50YXRpb24gb2YgcwogKgogKiBAcGF0aCBjaDA5LzkuOC85LjguMS9TOS44LjFfQTcuanMKICogQGRlc2NyaXB0aW9uIDEuMDAwMDAwMSBhbmQgLTEuMDAwMDAwMSBjb252ZXJ0IHRvIFN0cmluZyBieSBleHBsaWNpdCB0cmFuc2Zvcm1hdGlvbgogKi8KCi8vIENIRUNLIzEKaWYgKFN0cmluZygxLjAwMDAwMDEpICE9PSAiMS4wMDAwMDAxIikgewogICRFUlJPUignIzE6IFN0cmluZygxLjAwMDAwMDEpID09PSAiMS4wMDAwMDAxIi4gQWN0dWFsOiAnICsgKFN0cmluZygxLjAwMDAwMDEpKSk7Cn0KCi8vIENIRUNLIzIKaWYgKFN0cmluZygtMS4wMDAwMDAxKSAhPT0gIi0xLjAwMDAwMDEiKSB7CiAgJEVSUk9SKCcjMjogU3RyaW5nKC0xLjAwMDAwMDEpID09PSAiLTEuMDAwMDAwMSIuIEFjdHVhbDogJyArIChTdHJpbmcoLTEuMDAwMDAwMSkpKTsKfQoK",
"commentary":"If 1 <= s < 1e21 or -1e21 s < -1 and s has a fractional\ncomponent, return the string consisting of the most significant n digits of\nthe decimal representation of s, followed by a decimal point '.',\nfollowed by the remaining k-n digits of the decimal representation of s",
"description":"1.0000001 and -1.0000001 convert to String by explicit transformation",
"path":"TestCases/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KTsKfQoKLy8gQ0hFQ0sjNAppZiAoU3RyaW5nKDFFLTYpICE9PSAiMC4wMDAwMDEiKSB7CiAgJEVSUk9SKCcjNDogU3RyaW5nKDFFLTYpID09PSAiMC4wMDAwMDEiLiBBY3R1YWw6ICcgKyAoU3RyaW5nKDFFLTYpKSk7Cn0KCi8vIENIRUNLIzUKaWYgKFN0cmluZygtMC4xKSAhPT0gIi0wLjEiKSB7CiAgJEVSUk9SKCcjNTogU3RyaW5nKC0wLjEpID09PSAiLTAuMSIuIEFjdHVhbDogJyArIChTdHJpbmcoLTAuMSkpKTsKfQoKLy8gQ0hFQ0sjNgppZiAoU3RyaW5nKC0wLjAwMDAwMSkgIT09ICItMC4wMDAwMDEiKSB7CiAgJEVSUk9SKCcjNjogU3RyaW5nKC0wLjAwMDAwMSkgPT09ICItMC4wMDAwMDEiLiBBY3R1YWw6ICcgKyAoU3RyaW5nKC0wLjAwMDAwMSkpKTsKfQoKLy8gQ0hFQ0sjNwppZiAoU3RyaW5nKC0xZS02KSAhPT0gIi0wLjAwMDAwMSIpIHsKICAkRVJST1IoJyM3OiBTdHJpbmcoLTFlLTYpID09PSAiMC4wMDAwMDEiLiBBY3R1YWw6ICcgKyAoU3RyaW5nKC0xZS02KSkpOwp9CgovLyBDSEVDSyM4CmlmIChTdHJpbmcoLTFFLTYpICE9PSAiLTAuMDAwMDAxIikgewogICRFUlJPUignIzg6IFN0cmluZygtMUUtNikgPT09ICIwLjAwMDAwMSIuIEFjdHVhbDogJyArIChTdHJpbmcoLTFFLTYpKSk7Cn0KCgo=",
"commentary":"If 1 > s > -1, and -6 < n <= 0, return the string consisting of the\ncharacter '0', followed by a decimal point '.', followed by -n occurrences\nof the character '0', followed by the k digits of the decimal\nrepresentation of s",
"description":"Various float numbers convert to String by explicit transformation",
"path":"TestCases/ch09/9.8/9.8.1/S9.8.1_A8.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIE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aWYgKFN0cmluZygtMWUyMSkgIT09ICItMWUrMjEiKSB7CiAgJEVSUk9SKCcjOTogU3RyaW5nKC0xZTIxKSA9PT0gIi0xZSsyMSIuIEFjdHVhbDogJyArIChTdHJpbmcoLTFlMjEpKSk7Cn0KCi8vIENIRUNLIzEwCmlmIChTdHJpbmcoLTEuMGUyMikgIT09ICItMWUrMjIiKSB7CiAgJEVSUk9SKCcjMTA6IFN0cmluZygtMS4wZTIyKSA9PT0gIi0xZSsyMiIuIEFjdHVhbDogJyArIChTdHJpbmcoLTEuMGUyMikpKTsKfQoKLy8gQ0hFQ0sjMTEKaWYgKFN0cmluZygtMUUyMSkgIT09ICItMWUrMjEiKSB7CiAgJEVSUk9SKCcjMTE6IFN0cmluZygtMUUyMSkgPT09ICItMWUrMjEiLiBBY3R1YWw6ICcgKyAoU3RyaW5nKC0xRTIxKSkpOwp9CgovLyBDSEVDSyMxMgppZiAoU3RyaW5nKC0xLjBFMjIpICE9PSAiLTFlKzIyIikgewogICRFUlJPUignIzEyOiBTdHJpbmcoLTEuMEUyMikgPT09ICItMWUrMjIiLiBBY3R1YWw6ICcgKyAoU3RyaW5nKC0xLjBFMjIpKSk7Cn0KCg==",
"commentary":"Return the string consisting of the single digit of s,\nfollowed by lowercase character 'e', followed by a plus sign '+' or minus\nsign '-' according to whether n-1 is positive or negative, followed by the\ndecimal representation of the integer abs(n-1) (with no leading zeros)",
"description":"Various big numbers convert to String by explicit transformation",
"path":"TestCases/ch09/9.8/9.8.1/S9.8.1_A9_T1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBSZXR1cm4gdGhlIHN0cmluZyBjb25zaXN0aW5nIG9mIHRoZSBzaW5nbGUgZGlnaXQgb2YgcywKICogZm9sbG93ZWQgYnkgbG93ZXJjYXNlIGNoYXJhY3RlciAnZScsIGZvbGxvd2VkIGJ5IGE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luZygtMS4wZS0xMCkpKTsKfQoKLy8gQ0hFQ0sjMTEKaWYgKFN0cmluZygtMUUtNykgIT09ICItMWUtNyIpIHsKICAkRVJST1IoJyMxMTogU3RyaW5nKC0xRS03KSA9PT0gIi0xZS03Ii4gQWN0dWFsOiAnICsgKFN0cmluZygtMUUtNykpKTsKfQoKLy8gQ0hFQ0sjMTIKaWYgKFN0cmluZygtMS4wRS0xMCkgIT09ICItMWUtMTAiKSB7CiAgJEVSUk9SKCcjMTI6IFN0cmluZygtMS4wRS0xMCkgPT09ICItMWUtMTAiLiBBY3R1YWw6ICcgKyAoU3RyaW5nKC0xLjBFLTEwKSkpOwp9Cgo=",
"commentary":"Return the string consisting of the single digit of s,\nfollowed by lowercase character 'e', followed by a plus sign '+' or minus\nsign '-' according to whether n-1 is positive or negative, followed by the\ndecimal representation of the integer abs(n-1) (with no leading zeros)",
"description":"Various float numbers with many zeros convert to String by explicit transformation",
"path":"TestCases/ch09/9.8/9.8.1/S9.8.1_A9_T2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUb09iamVjdCBjb252ZXJzaW9uIGZyb20gdW5kZWZpbmVkIHZhbHVlIG11c3QgdGhyb3cgVHlwZUVycm9yCiAqCiAqIEBwYXRoIGNoMDkvOS45L1M5LjlfQTEuanMKICogQGRlc2NyaXB0aW9uIFRyeWluZyB0byBjb252ZXJ0IHVuZGVmaW5lZCB0byBPYmplY3QKICogQG5vU3RyaWN0CiAqLwoKLy8gQ0hFQ0sjMQp0cnl7CiAgdW5kZWZpbmVkWydmb28nXTsKICAkRVJST1IoJyMxLjE6IHVuZGVmaW5lZFtcJ2Zvb1wnXSBtdXN0IHRocm93IFR5cGVFcnJvci4gQWN0dWFsOiAnICsgKHVuZGVmaW5lZFsnZm9vJ10pKTsKfQpjYXRjaChlKXsKICBpZigoZSBpbnN0YW5jZW9mIFR5cGVFcnJvcikgIT09IHRydWUpewogICAgJEVSUk9SKCcjMS4yOiB1bmRlZmluZWRbXCdmb29cJ10gbXVzdCB0aHJvdyBUeXBlRXJyb3IuIEFjdHVhbDogJyArIChlKSk7CiAgfQp9CgovLyBDSEVDSyMyCnRyeXsKICB3aXRoKHVuZGVmaW5lZCkgeCA9IDI7CiAgJEVSUk9SKCcjMi4xOiB3aXRoKHVuZGVmaW5lZCkgeCA9IDIgbXVzdCB0aHJvdyBUeXBlRXJyb3IuIEFjdHVhbDogeCA9PT0gJyArICh4KSk7Cn0KY2F0Y2goZSl7CiAgaWYoKGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IpICE9PSB0cnVlKXsKICAgICRFUlJPUignIzIuMjogd2l0aCh1bmRlZmluZWQpIHggPSAyIG11c3QgdGhyb3cgVHlwZUVycm9yLiBBY3R1YWw6ICcgKyAoZSkpOwogIH0KfQoK",
"commentary":"ToObject conversion from undefined value must throw TypeError",
"description":"Trying to convert undefined to Object",
"noStrict":"",
"path":"TestCases/ch09/9.9/S9.9_A1.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUb09iamVjdCBjb252ZXJzaW9uIGZyb20gbnVsbCB2YWx1ZSBtdXN0IHRocm93IFR5cGVFcnJvcgogKgogKiBAcGF0aCBjaDA5LzkuOS9TOS45X0EyLmpzCiAqIEBkZXNjcmlwdGlvbiBUcnlpbmcgdG8gY29udmVydCBudWxsIHRvIE9iamVjdAogKiBAbm9TdHJpY3QKICovCgovLyBDSEVDSyMxCnRyeXsKICBudWxsWydmb28nXTsKICAkRVJST1IoJyMxLjE6IG51bGxbXCdmb29cJ10gdGhyb3cgVHlwZUVycm9yLiBBY3R1YWw6ICcgKyAobnVsbFsnZm9vJ10pKTsKfQpjYXRjaChlKXsKICBpZigoZSBpbnN0YW5jZW9mIFR5cGVFcnJvcikgIT09IHRydWUpewogICAgJEVSUk9SKCcjMS4yOiBudWxsW1wnZm9vXCddIG11c3QgdGhyb3cgVHlwZUVycm9yLiBBY3R1YWw6ICcgKyAoZSkpOwogIH0KfQoKLy8gQ0hFQ0sjMgp0cnl7CiAgd2l0aChudWxsKSB4ID0gMjsKICAkRVJST1IoJyMyLjE6IHdpdGgobnVsbCkgeCA9IDIgbXVzdCB0aHJvdyBUeXBlRXJyb3IuIEFjdHVhbDogeCA9PT0gLiBBY3R1YWw6ICcgKyAoeCkpOwp9CmNhdGNoKGUpewogIGlmKChlIGluc3RhbmNlb2YgVHlwZUVycm9yKSAhPT0gdHJ1ZSl7CiAgICAkRVJST1IoJyMyLjI6IHdpdGgobnVsbCkgeCA9IDIgbXVzdCB0aHJvdyBUeXBlRXJyb3IuIEFjdHVhbDogJyArIChlKSk7CiAgfQp9Cgo=",
"commentary":"ToObject conversion from null value must throw TypeError",
"description":"Trying to convert null to Object",
"noStrict":"",
"path":"TestCases/ch09/9.9/S9.9_A2.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUb09iamVjdCBjb252ZXJzaW9uIGZyb20gQm9vbGVhbjogY3JlYXRlIGEgbmV3IEJvb2xlYW4gb2JqZWN0CiAqIHdob3NlIFtbdmFsdWVdXSBwcm9wZXJ0eSBpcyBzZXQgdG8gdGhlIHZhbHVlIG9mIHRoZSBib29sZWFuCiAqCiAqIEBwYXRoIGNoMDkvOS45L1M5LjlfQTMuanMKICogQGRlc2NyaXB0aW9uIFRyeWluZyB0byBjb252ZXJ0IGZyb20gQm9vbGVhbiB0byBPYmplY3QKICovCgovLyBDSEVDSyMxCmlmIChPYmplY3QodHJ1ZSkudmFsdWVPZigpICE9PSB0cnVlKXsKICAkRVJST1IoJyMxOiBPYmplY3QodHJ1ZSkudmFsdWVPZigpID09PSB0cnVlLiBBY3R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6ICcgKyAoT2JqZWN0KGZhbHNlKS5jb25zdHJ1Y3Rvci5wcm90b3R5cGUpKTsKfQoK",
"commentary":"ToObject conversion from Boolean: create a new Boolean object\nwhose [[value]] property is set to the value of the boolean",
"description":"Trying to convert from Boolean to Object",
"path":"TestCases/ch09/9.9/S9.9_A3.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUb09iamVjdCBjb252ZXJzaW9uIGZyb20gTnVtYmVyOiBjcmVhdGUgYSBuZXcgTnVtYmVyIG9iamVjdAogKiB3aG9zZSBbW3ZhbHVlXV0gcHJvcGVydHkgaXMgc2V0IHRvIHRoZSB2YWx1ZSBvZiB0aGUgbnVtYmVyCiAqCiAqIEBwYXRoIGNoMDkvOS45L1M5LjlfQTQuanMKICogQGRlc2NyaXB0aW9uIENvbnZlcnRpbmcgZnJvbSB2YXJpb3VzIG51bWJlcnMgdG8gT2JqZWN0CiAqLwoKLy8gQ0hFQ0sjMQppZiAoT2JqZWN0KDApLnZhbHVlT2YoKSAhPT0gMCl7CiAgJEVSUk9SKCcjMTogT2JqZWN0KDApLnZhbHVlT2YoKSA9PT0gMC4gQWN0dWFsOiAnICsgKE9iamVjdCgwKS52YWx1ZU9mKCkpKTsKfQoKLy8gQ0hFQ0sjMgppZiAodHlwZW9mIE9iamVjdCgwKSAhPT0gIm9iamVjdCIpewogICRFUlJPUignIzI6IHR5cGVvZiBPYmplY3QoMCkgPT09ICJvYmplY3QiLiBBY3R1YWw6ICcgKyAodHlwZW9mIE9iamVjdCgwKSkpOwp9CgovLyBDSEVDSyMzCmlmIChPYmplY3QoMCkuY29uc3RydWN0b3IucHJvdG90eXBlICE9PSBOdW1iZXIucHJvdG90eXBlKXsKICAkRVJST1IoJyMzOiBPYmplY3QoMCkuY29uc3RydWN0b3IucHJvdG90eXBlID09PSBOdW1iZXIucHJvdG90eXBlLiB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WN0KDEuMjM0NSkgPT09ICJvYmplY3QiLiBBY3R1YWw6ICcgKyAodHlwZW9mIE9iamVjdCgxLjIzNDUpKSk7Cn0KCi8vIENIRUNLIzMwCmlmIChPYmplY3QoMS4yMzQ1KS5jb25zdHJ1Y3Rvci5wcm90b3R5cGUgIT09IE51bWJlci5wcm90b3R5cGUpewogICRFUlJPUignIzMwOiBPYmplY3QoMS4yMzQ1KS5jb25zdHJ1Y3Rvci5wcm90b3R5cGUgPT09IE51bWJlci5wcm90b3R5cGUuIEFjdHVhbDogJyArIChPYmplY3QoMS4yMzQ1KS5jb25zdHJ1Y3Rvci5wcm90b3R5cGUpKTsKfQoKLy8gQ0hFQ0sjMzEKaWYgKE9iamVjdCgtMS4yMzQ1KS52YWx1ZU9mKCkgIT09IC0xLjIzNDUpewogICRFUlJPUignIzMxOiBPYmplY3QoLTEuMjM0NSkudmFsdWVPZigpID09PSAtMS4yMzQ1LiBBY3R1YWw6ICcgKyAoT2JqZWN0KC0xLjIzNDUpLnZhbHVlT2YoKSkpOwp9CgovLyBDSEVDSyMzMgppZiAodHlwZW9mIE9iamVjdCgtMS4yMzQ1KSAhPT0gIm9iamVjdCIpewogICRFUlJPUignIzMyOiB0eXBlb2YgT2JqZWN0KC0xLjIzNDUpID09PSAib2JqZWN0Ii4gQWN0dWFsOiAnICsgKHR5cGVvZiBPYmplY3QoLTEuMjM0NSkpKTsKfQoKLy8gQ0hFQ0sjMzMKaWYgKE9iamVjdCgtMS4yMzQ1KS5jb25zdHJ1Y3Rvci5wcm90b3R5cGUgIT09IE51bWJlci5wcm90b3R5cGUpewogICRFUlJPUignIzMzOiBPYmplY3QoLTEuMjM0NSkuY29uc3RydWN0b3IucHJvdG90eXBlID09PSBOdW1iZXIucHJvdG90eXBlLiBBY3R1YWw6ICcgKyAoT2JqZWN0KC0xLjIzNDUpLmNvbnN0cnVjdG9yLnByb3RvdHlwZSkpOwp9Cgo=",
"commentary":"ToObject conversion from Number: create a new Number object\nwhose [[value]] property is set to the value of the number",
"description":"Converting from various numbers to Object",
"path":"TestCases/ch09/9.9/S9.9_A4.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUb09iamVjdCBjb252ZXJzaW9uIGZyb20gU3RyaW5nOiBjcmVhdGUgYSBuZXcgU3RyaW5nIG9iamVjdAogKiB3aG9zZSBbW3ZhbHVlXV0gcHJvcGVydHkgaXMgc2V0IHRvIHRoZSB2YWx1ZSBvZiB0aGUgc3RyaW5nCiAqCiAqIEBwYXRoIGNoMDkvOS45L1M5LjlfQTUuanMKICogQGRlc2NyaXB0aW9uIENvbnZlcnRpbmcgZnJvbSB2YXJpb3VzIHN0cmluZ3MgdG8gT2JqZWN0CiAqLwoKLy8gQ0hFQ0sjMQppZiAoT2JqZWN0KCJzb21lIHN0cmluZyIpLnZhbHVlT2YoKSAhPT0gInNvbWUgc3RyaW5nIil7CiAgJEVSUk9SKCcjMTogT2JqZWN0KCJzb21lIHN0cmluZyIpLnZhbHVlT2YoKSA9PT0gInNvbWUgc3RyaW5nIi4gQWN0dWFsOiAnICsgKE9iamVjdCgic29tZSBzdHJpbmciKS52YWx1ZU9mKCkpKTsKfQoKLy8gQ0hFQ0sjMgppZiAodHlwZW9mIE9iamVjdCgic29tZSBzdHJpbmciKSAhPT0gIm9iamVjdCIpewogICRFUlJPUignIzI6IHR5cGVvZiBPYmplY3QoInNvbWUgc3RyaW5nIikgPT09ICJvYmplY3QiLiBBY3R1YWw6ICcgKyAodHlwZW9mIE9iamVjdCgic29tZSBzdHJpbmciKSkpOwp9CgovLyBDSEVDSyMzCmlmIChPYmplY3QoInNvbWUgc3RyaW5nIikuY29uc3RydWN0b3IucHJvdG90eXBlICE9PSBTdHJpbmcucHJvdG90eXBlKXsKICAkRVJST1IoJyMzOiBPYmplY3QoInNvbWUgc3RyaW5nIikuY29uc3RydWN0b3IucHJvdG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b3IucHJvdG90eXBlKSk7Cn0KCg==",
"commentary":"ToObject conversion from String: create a new String object\nwhose [[value]] property is set to the value of the string",
"description":"Converting from various strings to Object",
"path":"TestCases/ch09/9.9/S9.9_A5.js"
},
{
"code":"Ly8gQ29weXJpZ2h0IDIwMDkgdGhlIFNwdXRuaWsgYXV0aG9ycy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBUb09iamVjdCBjb252ZXJzaW9uIGZyb20gT2JqZWN0OiBUaGUgcmVzdWx0IGlzIHRoZSBpbnB1dAogKiBhcmd1bWVudCAobm8gY29udmVyc2lvbikKICoKICogQHBhdGggY2gwOS85LjkvUzkuOV9BNi5qcwogKiBAZGVzY3JpcHRpb24gQ29udmVydGluZyBmcm9tIE9iamVjdHMgdG8gT2JqZWN0CiAqLwoKZnVuY3Rpb24gTXlPYmplY3QoIHZhbCApIHsKICAgIHRoaXMudmFsdWUgPSB2YWw7CiAgICB0aGlzLnZhbHVlT2YgPSBmdW5jdGlvbiAoKXsgcmV0dXJuIHRoaXMudmFsdWU7IH0KfQoKdmFyIHggPSBuZXcgTXlPYmplY3QoMSk7CnZhciB5ID0gT2JqZWN0KHgpOwoKLy8gQ0hFQ0sjMQppZiAoeS52YWx1ZU9mKCkgIT09IHgudmFsdWVPZigpKXsKICAkRVJST1IoJyMxOiBPYmplY3Qob2JqKS52YWx1ZU9mKCkgPT09IG9iai52YWx1ZU9mKCkuIEFjdHVhbDogJyArIChPYmplY3Qob2JqKS52YWx1ZU9mKCkpKTsKfQoKLy8gQ0hFQ0sjMgppZiAodHlwZW9mIHkgIT09IHR5cGVvZiB4KXsKICAkRVJST1IoJyMyOiB0eXBlb2YgT2JqZWN0KG9iaikgPT09IHR5cGVvZiBvYmouIEFjdHVhbDogJyArICh0eXBlb2YgT2JqZWN0KG9iaikpKTsKfQoKLy8gQ0hFQ0sjMwppZiAoeS5jb25zdHJ1Y3Rvci5wcm90b3R5cGUgIT09IHguY29uc3RydWN0b3IucHJvdG90eXBlKXsKICAkRVJST1IoJyMzOiBPYmplY3Qob2JqKS5jb25zdHJ1Y3Rvci5wcm90b3R5cGUgPT09IG9iai5jb25zdHJ1Y3Rvci5wcm90b3R5cGUuIEFjdHVhbDogJyArIChPYmplY3Qob2JqKS5jb25zdHJ1Y3Rvci5wcm90b3R5cGUpKTsKfQoKCi8vIENIRUNLIzQKaWYgKHkgIT09IHgpewogICRFUlJPUignIzQ6IE9iamVjdChvYmopID09PSBvYmonKTsKfQoK",
"commentary":"ToObject conversion from Object: The result is the input\nargument (no conversion)",
"description":"Converting from Objects to Object",
"path":"TestCases/ch09/9.9/S9.9_A6.js"
}
]
}
}