Share via


JScript Run-time Errors (Windows Scripting - JScript)

 

JScript run-time errors are errors that result when your JScript script attempts to perform an action that the system cannot execute. JScript run-time errors occur while your script is being executed; when variable expressions are being evaluated, and memory is being dynamic allocated.

Errors

Error Number

Description

5029

Array length must be a finite positive integer

5030

Array length must be assigned a finite positive number

5028

Array or arguments object expected

5010

Boolean expected

5003

Cannot assign to a function result

5000

Cannot assign to 'this'

5034

Circular reference in value argument not supported

5006

Date object expected

5015

Enumerator object expected

5022

Exception thrown and not caught

5020

Expected ')' in regular expression

5019

Expected ']' in regular expression

5023

Function does not have a valid prototype object

5002

Function expected

5008

Illegal assignment

5021

Invalid range in character set

5035

Invalid replacer argument

5014

JScript object expected

5001

Number expected

5007

Object expected

5012

Object member expected

5016

Regular Expression object expected

5005

String expected

5017

Syntax error in regular expression

5026

The number of fractional digits is out of range

5027

The precision is out of range

5025

The URI to be decoded is not a valid encoding

5024

The URI to be encoded contains an invalid character

5009

Undefined identifier

5018

Unexpected quantifier

5013

VBArray expected

Script Host Errors

The following errors are properly speaking errors pertaining to the script host, but you may see them occasionally.

Error

HRESULT

Description

SCRIPT_E_RECORDED

0x86664004

An error has been recorded to be passed between script engine and host. The host needs to pass the error code to the caller.

SCRIPT_E_REPORTED

0x80020101

Script engine has reported an unhandled exception to the host via IActiveScriptSite::OnScriptError. Host can ignore this error.

SCRIPT_E_PROPAGATE

0x8002010

A script error is being propagated to the caller which might be in a different thread. The host should pass the error code to the caller.

Change History

Date

History

Reason

August 2008

Added JSON errors.

Information enhancement.

See Also

JScript Syntax Errors (Windows Scripting - JScript)