Skip to content

Commit

Permalink
remove more of the legacy of RIB_ID
Browse files Browse the repository at this point in the history
--HG--
branch : com.mozilla.es4.smlnj.new-type-normalizer
extra : convert_revision : b1b9f32e464645090bc437cec487ab811661662b
  • Loading branch information
graydon committed Apr 6, 2008
1 parent 90c245b commit 5247caa
Show file tree
Hide file tree
Showing 5 changed files with 504 additions and 553 deletions.
11 changes: 2 additions & 9 deletions builtins/Global.es
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ package

__ES4__ namespace iterator;

__ES4__ type EnumerableId = (int|uint|string|Name);

helper function toEnumerableId(x) {
switch type (x) {
case (x: EnumerableId) { return x; }
Expand Down Expand Up @@ -522,12 +524,3 @@ package
intrinsic native function get(obj:Object!, name:string) : *;
intrinsic native function set(obj:Object!, name:string, val:*) : void;
}

// FIXME: types do not hoist, but they *do* get allocated on to the global object
// when defined at package scope. This is inconsistent and weird: it means that
// we have to move EnumerableId out here to have Object.es *statically* see the
// type, even though if we wait until we've actually executed this file, we will
// wind up with an EnumerableId type property stuck on global, visible to Object
// instances.

__ES4__ type EnumerableId = (int|uint|string|Name);
Loading

0 comments on commit 5247caa

Please sign in to comment.