diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-01-17 11:32:56 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-01-17 11:32:56 -0800 |
commit | cf2e4f44afbfb208c5976786c96ec963930323cc (patch) | |
tree | 7e9ddac16d51490f1428abb610afd02eda98aacf /deps/v8/src/token.h | |
parent | 082a4b6033df22a68518c58d320e86f688db7bda (diff) | |
download | node-new-cf2e4f44afbfb208c5976786c96ec963930323cc.tar.gz |
Upgrade V8 to 3.0.8
Diffstat (limited to 'deps/v8/src/token.h')
-rw-r--r-- | deps/v8/src/token.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/v8/src/token.h b/deps/v8/src/token.h index 2f5ca1b5fc..fb890d2342 100644 --- a/deps/v8/src/token.h +++ b/deps/v8/src/token.h @@ -217,7 +217,7 @@ class Token { // Returns a string corresponding to the C++ token name // (e.g. "LT" for the token LT). static const char* Name(Value tok) { - ASSERT(0 <= tok && tok < NUM_TOKENS); + ASSERT(tok < NUM_TOKENS); // tok is unsigned return name_[tok]; } @@ -292,14 +292,14 @@ class Token { // (.e., "<" for the token LT) or NULL if the token doesn't // have a (unique) string (e.g. an IDENTIFIER). static const char* String(Value tok) { - ASSERT(0 <= tok && tok < NUM_TOKENS); + ASSERT(tok < NUM_TOKENS); // tok is unsigned. return string_[tok]; } // Returns the precedence > 0 for binary and compare // operators; returns 0 otherwise. static int Precedence(Value tok) { - ASSERT(0 <= tok && tok < NUM_TOKENS); + ASSERT(tok < NUM_TOKENS); // tok is unsigned. return precedence_[tok]; } |