src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/resources/Messages.properties

Print this page




  56 parser.error.missing.catch.or.finally=Missing catch or finally after try
  57 parser.error.regex.unsupported.flag=Unsupported RegExp flag: {0}
  58 parser.error.regex.repeated.flag=Repeated RegExp flag: {0}
  59 parser.error.regex.syntax={0}
  60 parser.error.trailing.comma.in.json=Trailing comma is not allowed in JSON
  61 parser.error.missing.const.assignment=Missing assignment to constant "{0}"
  62 
  63 # strict mode error messages
  64 parser.error.strict.no.with="with" statement cannot be used in strict mode
  65 parser.error.strict.name="{0}" cannot be used as {1} in strict mode
  66 parser.error.strict.cant.delete.ident=cannot delete identifier "{0}" in strict mode
  67 parser.error.strict.param.redefinition=strict mode function cannot have duplicate parameter name "{0}"
  68 parser.error.strict.no.octal=cannot use octal value in strict mode
  69 parser.error.strict.no.func.decl.here=In strict mode, function declarations can only occur at program or function body level. You should use a function expression here instead.
  70 type.error.strict.getter.setter.poison=In strict mode, "caller", "callee", and "arguments" properties can not be accessed on functions or the arguments object
  71 
  72 # not the expected type in a given context
  73 type.error.not.an.object={0} is not an Object
  74 type.error.not.a.boolean={0} is not a Boolean
  75 type.error.not.a.date={0} is not a Date

  76 type.error.not.a.number={0} is not a Number
  77 type.error.not.a.regexp={0} is not a RegExp
  78 type.error.not.a.string={0} is not a String
  79 type.error.not.a.function={0} is not a function
  80 type.error.not.a.constructor={0} is not a constructor function
  81 type.error.not.a.file={0} is not a File
  82 type.error.not.a.numeric.array={0} is not a numeric array
  83 type.error.not.a.bytebuffer={0} is not a java.nio.ByteBuffer
  84 type.error.not.an.arraybuffer.in.dataview=First arg to DataView constructor must be an ArrayBuffer
  85 type.error.no.reflection.with.classfilter=Java reflection not supported when class filter is present
  86 
  87 # operations not permitted on undefined
  88 type.error.cant.call.undefined=Cannot call undefined
  89 type.error.cant.read.property.of.undefined=Cannot read property "{0}" from undefined
  90 type.error.cant.set.property.of.undefined=Cannot set property "{0}" of undefined
  91 type.error.cant.delete.property.of.undefined=Cannot delete property "{0}" of undefined
  92 
  93 # other wrong usages of property
  94 type.error.property.has.no.setter=Cannot set property "{0}" of {1} that has only a getter
  95 type.error.cant.set.proto.to.non.object=Cannot set Object {0}''s __proto__ to be a non-object like {1}




  56 parser.error.missing.catch.or.finally=Missing catch or finally after try
  57 parser.error.regex.unsupported.flag=Unsupported RegExp flag: {0}
  58 parser.error.regex.repeated.flag=Repeated RegExp flag: {0}
  59 parser.error.regex.syntax={0}
  60 parser.error.trailing.comma.in.json=Trailing comma is not allowed in JSON
  61 parser.error.missing.const.assignment=Missing assignment to constant "{0}"
  62 
  63 # strict mode error messages
  64 parser.error.strict.no.with="with" statement cannot be used in strict mode
  65 parser.error.strict.name="{0}" cannot be used as {1} in strict mode
  66 parser.error.strict.cant.delete.ident=cannot delete identifier "{0}" in strict mode
  67 parser.error.strict.param.redefinition=strict mode function cannot have duplicate parameter name "{0}"
  68 parser.error.strict.no.octal=cannot use octal value in strict mode
  69 parser.error.strict.no.func.decl.here=In strict mode, function declarations can only occur at program or function body level. You should use a function expression here instead.
  70 type.error.strict.getter.setter.poison=In strict mode, "caller", "callee", and "arguments" properties can not be accessed on functions or the arguments object
  71 
  72 # not the expected type in a given context
  73 type.error.not.an.object={0} is not an Object
  74 type.error.not.a.boolean={0} is not a Boolean
  75 type.error.not.a.date={0} is not a Date
  76 type.error.not.a.java.importer={0} is not a JavaImporter object
  77 type.error.not.a.number={0} is not a Number
  78 type.error.not.a.regexp={0} is not a RegExp
  79 type.error.not.a.string={0} is not a String
  80 type.error.not.a.function={0} is not a function
  81 type.error.not.a.constructor={0} is not a constructor function
  82 type.error.not.a.file={0} is not a File
  83 type.error.not.a.numeric.array={0} is not a numeric array
  84 type.error.not.a.bytebuffer={0} is not a java.nio.ByteBuffer
  85 type.error.not.an.arraybuffer.in.dataview=First arg to DataView constructor must be an ArrayBuffer
  86 type.error.no.reflection.with.classfilter=Java reflection not supported when class filter is present
  87 
  88 # operations not permitted on undefined
  89 type.error.cant.call.undefined=Cannot call undefined
  90 type.error.cant.read.property.of.undefined=Cannot read property "{0}" from undefined
  91 type.error.cant.set.property.of.undefined=Cannot set property "{0}" of undefined
  92 type.error.cant.delete.property.of.undefined=Cannot delete property "{0}" of undefined
  93 
  94 # other wrong usages of property
  95 type.error.property.has.no.setter=Cannot set property "{0}" of {1} that has only a getter
  96 type.error.cant.set.proto.to.non.object=Cannot set Object {0}''s __proto__ to be a non-object like {1}