Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 324416 | Differences between
and this patch

Collapse All | Expand All

(-)libraries/system.js (+7 lines)
Lines 958-963 Link Here
958
Global.prototype.debugger=null;
958
Global.prototype.debugger=null;
959
959
960
/**
960
/**
961
 * Property undefined
962
 * @memberOf Global
963
 * @description undefined
964
*/
965
Global.prototype.undefined=null;
966
967
/**
961
  * function parseInt(s,radix)
968
  * function parseInt(s,radix)
962
  * @memberOf Global
969
  * @memberOf Global
963
  * @param {String} s
970
  * @param {String} s
(-)src/org/eclipse/wst/jsdt/internal/compiler/batch/CompilationUnit.java (-2 / +5 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2008 IBM Corporation and others.
2
 * Copyright (c) 2000, 2010 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 13-18 Link Here
13
import java.io.File;
13
import java.io.File;
14
import java.io.IOException;
14
import java.io.IOException;
15
15
16
import org.eclipse.wst.jsdt.core.IJavaScriptProject;
16
import org.eclipse.wst.jsdt.core.LibrarySuperType;
17
import org.eclipse.wst.jsdt.core.LibrarySuperType;
17
import org.eclipse.wst.jsdt.core.compiler.CharOperation;
18
import org.eclipse.wst.jsdt.core.compiler.CharOperation;
18
import org.eclipse.wst.jsdt.internal.compiler.env.ICompilationUnit;
19
import org.eclipse.wst.jsdt.internal.compiler.env.ICompilationUnit;
Lines 97-103 Link Here
97
public LibrarySuperType getCommonSuperType() {
98
public LibrarySuperType getCommonSuperType() {
98
	// TODO Auto-generated method stub
99
	// TODO Auto-generated method stub
99
//	System.out.println("Unimplemented method:JavaScriptUnit.getCommonSuperType"); //$NON-NLS-1$
100
//	System.out.println("Unimplemented method:JavaScriptUnit.getCommonSuperType"); //$NON-NLS-1$
100
	return null;
101
	// need to set the name of the super type or else we can't resolve global variables
102
	return new LibrarySuperType("batch", (IJavaScriptProject) null, "Global");
103
	//return null;
101
}
104
}
102
public String getInferenceID() {
105
public String getInferenceID() {
103
	return null;
106
	return null;
(-)src/org/eclipse/wst/jsdt/internal/compiler/parser/Scanner.java (-15 / +15 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2008 IBM Corporation and others.
2
 * Copyright (c) 2000, 2010 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 3651-3670 Link Here
3651
					return TokenNameIdentifier;
3651
					return TokenNameIdentifier;
3652
			}
3652
			}
3653
3653
3654
		case 'u' : //goto
3654
//		case 'u' : //goto
3655
			if (length == 9) {
3655
//			if (length == 9) {
3656
				if ((data[++index] == 'n')
3656
//				if ((data[++index] == 'n')
3657
					&& (data[++index] == 'd')
3657
//					&& (data[++index] == 'd')
3658
					&& (data[++index] == 'e')
3658
//					&& (data[++index] == 'e')
3659
					&& (data[++index] == 'f')
3659
//					&& (data[++index] == 'f')
3660
					&& (data[++index] == 'i')
3660
//					&& (data[++index] == 'i')
3661
					&& (data[++index] == 'n')
3661
//					&& (data[++index] == 'n')
3662
					&& (data[++index] == 'e')
3662
//					&& (data[++index] == 'e')
3663
					&& (data[++index] == 'd')) {
3663
//					&& (data[++index] == 'd')) {
3664
					return TokenNameundefined;
3664
//					return TokenNameIdentifier;
3665
				}
3665
//				}
3666
			} //no goto in java are allowed, so why java removes this keyword ???
3666
//			} //no goto in java are allowed, so why java removes this keyword ???
3667
			return TokenNameIdentifier;
3667
//			return TokenNameIdentifier;
3668
3668
3669
		case 'v' : //void volatile
3669
		case 'v' : //void volatile
3670
			switch (length) {
3670
			switch (length) {

Return to bug 324416