Fix lint issues.
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@429 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
70fa44ecea
commit
2b3b31cf1c
@ -491,7 +491,7 @@ template <class Dest, class Source>
|
||||
inline Dest bit_cast(const Source& source) {
|
||||
// Compile time assertion: sizeof(Dest) == sizeof(Source)
|
||||
// A compile error here means your Dest and Source have different sizes.
|
||||
typedef char VerifySizesAreEqual [sizeof(Dest) == sizeof(Source) ? 1 : -1];
|
||||
typedef char VerifySizesAreEqual[sizeof(Dest) == sizeof(Source) ? 1 : -1];
|
||||
|
||||
Dest dest;
|
||||
memcpy(&dest, &source, sizeof(dest));
|
||||
|
@ -509,9 +509,9 @@ static Object* Runtime_InitializeVarGlobal(Arguments args) {
|
||||
global->LocalLookup(*name, &lookup);
|
||||
if (!lookup.IsProperty()) {
|
||||
Object* value = (assign) ? args[1] : Heap::undefined_value();
|
||||
return global->IgnoreAttributesAndSetLocalProperty(*name,
|
||||
value,
|
||||
attributes);
|
||||
return global->IgnoreAttributesAndSetLocalProperty(*name,
|
||||
value,
|
||||
attributes);
|
||||
}
|
||||
|
||||
// Determine if this is a redeclaration of something read-only.
|
||||
@ -575,9 +575,9 @@ static Object* Runtime_InitializeConstGlobal(Arguments args) {
|
||||
LookupResult lookup;
|
||||
global->LocalLookup(*name, &lookup);
|
||||
if (!lookup.IsProperty()) {
|
||||
return global->IgnoreAttributesAndSetLocalProperty(*name,
|
||||
*value,
|
||||
attributes);
|
||||
return global->IgnoreAttributesAndSetLocalProperty(*name,
|
||||
*value,
|
||||
attributes);
|
||||
}
|
||||
|
||||
// Determine if this is a redeclaration of something not
|
||||
|
@ -166,8 +166,7 @@ $Object.prototype.constructor = $Object;
|
||||
throw new $TypeError('Object.prototype.__defineGetter__: this is Null');
|
||||
}
|
||||
if (!IS_FUNCTION(fun)) {
|
||||
throw new $TypeError(
|
||||
'Object.prototype.__defineGetter__: Expecting function');
|
||||
throw new $TypeError('Object.prototype.__defineGetter__: Expecting function');
|
||||
}
|
||||
return %DefineAccessor(ToObject(this), ToString(name), GETTER, fun);
|
||||
}, DONT_ENUM);
|
||||
|
Loading…
Reference in New Issue
Block a user