Commit 2b3b31cf authored by kasperl@chromium.org's avatar kasperl@chromium.org

Fix lint issues.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@429 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 70fa44ec
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment