diff --git a/src/compiler/codegen/events.js b/src/compiler/codegen/events.js
index <HASH>..<HASH> 100644
--- a/src/compiler/codegen/events.js
+++ b/src/compiler/codegen/events.js
@@ -36,10 +36,10 @@ const modifierCode: { [key: string]: string } = {
 
 export function genHandlers (
   events: ASTElementHandlers,
-  native: boolean,
+  isNative: boolean,
   warn: Function
 ): string {
-  let res = native ? 'nativeOn:{' : 'on:{'
+  let res = isNative ? 'nativeOn:{' : 'on:{'
   for (const name in events) {
     const handler = events[name]
     // #5330: warn click.right, since right clicks do not actually fire click events.
avoid using native as identifier (close #<I>)