nashorn/test/script/basic/map.js.EXPECTED
author hannesw
Thu, 11 Apr 2013 12:16:39 +0200
changeset 16943 a1b9b7970813
parent 16147 e63b63819133
child 34979 03b189baa361
permissions -rw-r--r--
8011980: Allow NUL character in character class Reviewed-by: sundar, lagergren
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     1
m.class.name=java.util.LinkedHashMap
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     2
m = {}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     3
m.empty = true
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     4
m['empty'] = true
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     5
m[empty_key] = true
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     6
m = {empty=foo}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     7
m.empty = false
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     8
m['empty'] = foo
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     9
m[empty_key] = foo
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    10
m.bwah = null
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    11
m['bwah'] = null
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    12
m.twonk = ding
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    13
m['twonk'] = ding
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    14
m.size()=2
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    15
--for each begin--
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    16
empty
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    17
twonk
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    18
--for each end--