bug: rawset/rawget do not ignore extra arguments

This commit is contained in:
Roberto Ierusalimschy
2005-03-11 12:51:08 -03:00
parent 370d31a559
commit 6bfef60e77
2 changed files with 24 additions and 1 deletions

21
bugs
View File

@@ -743,3 +743,24 @@ patch = [[
]],
}
Bug{
what = [[rawset/rawget do not ignore extra arguments]],
report = [[Romulo Bahiense, 11/03/2005]],
example = [[
a = {}
rawset(a, 1, 2, 3)
print(a[1], a[2]) -- should be 2 and nil
]],
patch = [[
* lbaselib.c:
175a176
> lua_settop(L, 2);
183a185
> lua_settop(L, 3);
]],
}